소스 검색

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

SEBAS 5 달 전
부모
커밋
2e5eebb8d1
1개의 변경된 파일9개의 추가작업 그리고 3개의 파일을 삭제
  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>