I HAVE AN INHERITED VIEW OF SALE.VIEW_ORDER_FORM
I AM TRYING TO CHANGE THE DOMAIN OF PARTNER_ID IN THIS NEW INHERITED FORM.
BUT IT DOESN´T TAKE ANY CHANGE WHEN RELOAD THE FORM... I MEAN, THE NEW FIELD ( VEHICLE_ID ) IS THERE, BUT THE DOMAIN OF PARNER_ID DOESN´T CHANGE. IT TAKES THE ORIGINAL FROM THE SALE.VIEW_ORDER_FORM
<record id="saymeh_view_order_form" model="ir.ui.view">
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="model">sale.order</field>
<field name="arch" type="xml">
<field name="partner_id" domain="[('customer','=',1), ('parent_id', '=', False)]" position="after">
<field name="vehicle_id" />
</field>
</field>
</record>
Please follow netiquette and do not use all caps.