Parcourir la source

Ordebar tree del código de barra en ajuste de inventario

SEBAS il y a 5 mois
Parent
commit
2e5eebb8d1
1 fichiers modifiés avec 9 ajouts et 3 suppressions
  1. 9 3
      stock_inventory_product_ean13.xml

+ 9 - 3
stock_inventory_product_ean13.xml

@@ -7,11 +7,17 @@
             <field name="model">stock.inventory</field>
             <field name="inherit_id" ref="stock.view_inventory_form"/>
             <field name="arch" type="xml">
-                <xpath expr="//tree[@string='Inventory Details']//field[@name='product_id']" position="after">
+              <xpath expr="//tree[@string='Inventory Details']" position="attributes">
+                   <attribute name="default_order">product_id asc, ean13 asc</attribute>
+               </xpath>
+               <xpath expr="//tree[@string='Inventory Details']//field[@name='product_id']" position="after">
+                   <field name="ean13"/>
+               </xpath>
+                <!-- <xpath expr="//tree[@string='Inventory Details']//field[@name='product_id']" position="after">
                     <field name="ean13"/>
-                </xpath>
+                </xpath> -->
             </field>
         </record>
-        
+
    </data>
 </openerp>