问题描述
我想在采购订单表单视图中单击“添加产品”打开表单视图,就像在销售订单视图中一样。我真的不知道为什么在销售订单视图中它有效,但在采购订单视图中却没有。
解决方法
我在采购订单表单视图中将 editable
中的 ""
属性更改为 tree
并且它有效;)
<record id="purchase_order_form_inherit" model="ir.ui.view">
<field name="name">purchase.order.form.inherit</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='order_line']/tree" position="attributes">
<attribute name="editable"></attribute>
</xpath>
</field>
</record>