I'm trying to insert my starting_day field after the product_id but it has no effect, best I can tell it's ignoring my XML.
<record id="view_res_sale_line_email_chain_form" model="ir.ui.view">
<field name="name">sale.order.form.inherit</field>
<field name="model">sale.order</field>
<field name="type">form</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='product_id']" position="after">
<field name="starting_day" attrs="{'required':[('email_chain','!=',False)]}"/>
</xpath>
<field name="product_id" position="after">
<field name="starting_day" attrs="{'required':[('email_chain','!=',False)]}"/>
</field>
</field>
</record>
Any idea on how I can fix it?
Hi, U should research more into inherited views... you problem is that product_id gets heavily inherited thru out.. so look 4 this and or similiar... <xpath expr="//field[@name='order_line']/form//field[@name='product_id']" position="replace"> ::: this string come from sale_stock_view - V9alpha So just check nothing else is getting there first right????