Odoo Help


This community 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.


How to prohibit new record creation inside 'Add' (Select) tree view of a many2many field?

Anton Chepurov
on 6/1/14, 3:55 PM 1,633 views

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?

Anton Chepurov
On 6/2/14, 5:37 AM

unfortunately, it doesn't help much, as in my case a tree view is concerned, not the form view.

Luis Filipe,
users should still be able to add existing entries, but not the new ones. I was talking about prohibiting CREATION, not prohibiting ADDITION.


Hi, in the page definition of your view try this:

                            <page string="Tracing">
                                <field name="tracing_ids">
                                    <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.



| 5 2 8
Ahmadabad, India
On 6/2/14, 4:18 AM


Following link may help you:

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 6/1/14, 3:55 PM
Seen: 1633 times
Last updated: 3/16/15, 8:10 AM