Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
On a form view with a Many2Many field, I'd like users to be able to Add existing records to M2M field, but not Create new records.
In other words, when we hit the 'Add' button to add objects to M2M field, there is a 'Create' button in addition to 'Select' button, on the form.
How do we remove this 'Create' button from the 'Add' (Select) view?
Hi, in the page definition of your view try this:
<tree delete="false" create="false" >
<field name="change_date" />
<field name="executor" />
<field name="state" />
<field name="assigned_to" />
With the attributes create="false", users won't be able to add new entries. and the delete="false" they won't be able to delete them either.
I hope this is what you wanted.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 6/1/14, 3:55 PM|
|Seen: 1990 times|
|Last updated: 3/16/15, 8:10 AM|