i'm trying to replace a field in a treeview ... help me please
this is my script in _view.xml
*<record model="ir.ui.view" id="view_purchase_requisition_form">
<field name="name">purchase.requisition.form.inherit</field>
<field name="model">purchase.requisition</field>
<field name="inherit_id" ref="purchase_requisition.view_purchase_requisition_form"/>
<field name="arch" type="xml">
<field name="origin" position="replace"/>
<xpath expr="/form/group/field[@name='date_end']" position="after">
<field name="origine" />
</xpath>
</field>
</record>
<record model="ir.ui.view" id="view_purchase_requisition_tree">
<field name="name">purchase.requisition.tree.inherit</field>
<field name="model">purchase.requisition.tree</field>
<field name="type">tree</field>
<field name="inherit_id2" ref="purchase_requisition.view_purchase_requisition_tree"/>
<field name="arch" type="xml">
<field name="origin" position="replace"/>
<xpath expr="/tree/field[@name='date_end']" position="after">
<field name="origine" />
</xpath>
</field>
</record>*
in the form it functions but in tree view no.... i can't understand where is the error....
I think you missed something, you have wrong model and no inherid_id on the second view definition