如何删除在 many2many 字段的笔记本中添加一行?奥多12

How to remove add a line in the notebook of a many2many field? odoo 12

实际上我创建了一个 many2many 字段并将其添加到 notebook.i 的字段中,我尝试提供选项 =“{'no_create': True,'no_create_edit':True}”在 xml file.But 中,添加一行按钮仍在显示。

如果您想删除 one2manymany2many 列表视图中的 add line button/link,您必须将 create="0" 添加到树节点,因为示例:

<field name="my_x2many_field">
    <tree create="0">
        <field name="my_field" />
    </tree>
</field>