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.
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 6/1/14, 3:55 PM|
|Seen: 1633 times|
|Last updated: 3/16/15, 8:10 AM|