0
我已经继承了购买模块,但我不希望字段“incoterm_id”,我试图通过使用xpath和属性隐藏它,但不幸的是它并没有隐藏。这是我的代码。我有隐藏在odoo中的字段
<record id="view_construction_form" model= "ir.ui.view">
<field name="name">view.construction.form</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
<form>
<xpath expr="/form/sheet/notebook/page[2]/group[1]/group[1]/field[@name='incoterm_id']" position="attributes">
<attribute name="invisible">True</attribute>
</xpath>
</form>
</field>
</record>
非常感谢你,兄弟。 – Yash