只需要在context中指定即可, 话不多说,请看代码:
1 2
| <field name="packaging_ids" nolabel="1" context="{'tree_view_ref':'product.product_packaging_tree_view2','form_view_ref':'product.product_packaging_form_view2'}"/>
|
1
| <field name="project_id" required="1" context="{'form_view_ref': 'project.project_project_view_form_simplified',}"/>
|