[FIX] Sale_layout: moved the sale category inside the form and after the product, not before

bzr revid: sle@openerp.com-20140423141225-55qdtykoohb4uh06
This commit is contained in:
Simon Lejeune
2014-04-23 16:12:25 +02:00
parent 85c32739d9
commit acd3c99ddf
@@ -8,21 +8,8 @@
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<data>
<xpath expr="//notebook/page/field[@name='order_line']/tree" position="attributes">
<attribute name="editable"></attribute>
</xpath>
</data>
</field>
</record>
<record model="ir.ui.view" id="view_order_form_inherit_2">
<field name="name">sale.order.line.form.inherit_2</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<data>
<xpath expr="//field[@name='order_line']/form/group/group/field[@name='product_id']" position="before">
<field name="sale_layout_cat_id"/>
<xpath expr="//notebook/page/field[@name='order_line']/tree[@string='Sales Order Lines']/field[@name='product_id']" position="after">
<field name="sale_layout_cat_id"/>
</xpath>
</data>
</field>
@@ -35,9 +22,10 @@
<field name="inherit_id" ref="account.invoice_form"/>
<field name="arch" type="xml">
<data>
<xpath expr="//notebook/page/field[@name='invoice_line']/tree" position="attributes">
<attribute name="editable"></attribute>
</xpath>
<xpath expr="//page[@string='Invoice Lines']/field[@name='invoice_line']/tree/field[@name='product_id']" position="after">
<field name="sale_layout_cat_id"/>
</xpath>
</data>
</field>
</record>
@@ -48,7 +36,7 @@
<field name="inherit_id" ref="account.view_invoice_line_form"/>
<field name="arch" type="xml">
<data>
<xpath expr="//group/group/field[@name='product_id']" position="before">
<xpath expr="//group/group/field[@name='product_id']" position="after">
<field name="sale_layout_cat_id"/>
</xpath>
</data>