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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hi aneesh,
Try this, <field name="many2one_field_name" options="{"no_open": 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.
hi,
you may try this:
<field name="product_id" options='{"create":False,"create_edit": False,"no_open": True}'/>
Hi,
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}"/>
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký