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.


Restrict my Many2One to show only option of 'Create and Edit...'.

on 2/11/15, 2:44 AM 1,881 views

Dear Sir/Madom,
I need to restrict my manytoone to show only option of 'Create and Edit...', ie I needn't want to display the all options but only need to have a option for create.
Thank You

Mansi Kariya (mka)
On 2/11/15, 5:09 AM

 Hi aneesh,

Try this, <field name="many2one_field_name" options="{&quot;no_open&quot;: True}" />

here, options - JSON object specifying configuration option for the field’s widget (including default widgets)

And if you don't want to allow create or edit then. give widget="selection" on that field. <field name="many2one_field_name" widget="selection" />

for more details, visit this http://www.odoo.com/documentation/8.0/reference/views.html#lists

Hope this will help you.



| 5 3 8
Pondicherry, India
On 2/11/15, 5:37 AM


you may try this:

<field name="product_id" options='{"create":False,"create_edit": False,"no_open": True}'/>

On 5/7/15, 8:37 AM


You can achieve this as follows:

Install module web_m2x_options https://www.odoo.com/apps/modules/8.0/web_m2x_options/

Then set limit as zero for listing in many2one field.

Ex:    <field name="partner_id" options="{'limit': 0}"/> 

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: 2/11/15, 2:44 AM
Seen: 1881 times
Last updated: 5/7/15, 8:37 AM