Hi guys,
I have to eliminate the "Create/edit" option, at the quotation, when I select the customers field, the option let to the user create customers, But I need this option is disabled.
Thanks in advanced.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi guys,
I have to eliminate the "Create/edit" option, at the quotation, when I select the customers field, the option let to the user create customers, But I need this option is disabled.
Thanks in advanced.
Hi,
For removing the create and edit option from the Many2one field,.what you can do is that, in the XML, along with the field give like this options="{'create': false, 'create_edit': false}"/>
This will remove the create and edit option from the many2one field.
create
: true/false -> disable "create" entry in dropdown panelcreate_edit
: true/false -> disable "create and edit" entry in dropdown panellimit
: 10 (int) -> change number of selected record return in dropdown panelm2o_dialog
: true/false -> disable quick create M20Dialog triggered on error.<field name="partner_id" options="{'limit': 10, 'create': false, 'create_edit': false}"/>
Thanks
Hi Niyas,
I used this code:
<field name="partner_id" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options="{"always_reload": True, "no_create_edit":true,"no_create": true}"/>
pls refer to this help to see the best answer:
https://www.odoo.com/fr_FR/forum/aide-1/how-to-remove-create-and-edit-from-many2one-field-92242
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
Odoo Fleet Management
Solved
|
|
1
Dec 19
|
4150 | |
|
0
Sep 18
|
11303 | ||
|
2
Apr 25
|
2034 | ||
|
1
Feb 25
|
596 | ||
|
2
Feb 25
|
1071 |