如何在 odoo 11 的表单视图中隐藏创建和创建和编辑选项?

How to Hide Create and Create and edit Options in form view in odoo 11?

我添加了与 Many2one 相关的新字段,当我点击它时,它会显示创建、创建和编辑按钮,所以任何人都可以帮助我如何实现。

我提交的代码:

 exam_course = field.Many2one('coures.type', string="Course")

嘿,试试下面的代码,我认为它对你有帮助

<field name="field_name" options="{'no_create ': True, 'no_create_edit' : True}"/>

有关更多信息,您可以尝试以下 link :

How to remove Create and Edit... from many2one field.?