微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Odoo add_product_control 打开表单视图

如何解决Odoo add_product_control 打开表单视图

我想在采购订单表单视图中单击“添加产品”打开表单视图,就像在销售订单视图中一样。我真的不知道为什么在销售订单视图中它有效,但在采购订单视图中却没有。

enter image description here

解决方法

我在采购订单表单视图中将 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>

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。