【发布时间】:2019-12-20 00:52:55
【问题描述】:
【问题讨论】:
-
是的,因为它来自继承的视图。那么,您需要检查它的来源?
【问题讨论】:
您不应该从表单视图中删除页面,因为它也继承自其他视图。
相反,您可以通过继承销售的view_order_form 使其成为invisible。
<record id="view_order_form_inherit" model="ir.ui.view">
<field name="name">sale.order.form</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="priority">20</field>
<field name="arch" type="xml">
<xpath expr="//page[@name='other_information']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//page[2]" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
</field>
</record>
希望这会有所帮助!
【讨论】:
<!--remove the notebook pages-->
<xpath expr="//page[@name='extra']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//page[@name='note']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
【讨论】: