Hi
How can define for example: modifiers="{'readonly': [['state', 'not in, ['draft']]]}" for some fields from interface?
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi
How can define for example: modifiers="{'readonly': [['state', 'not in, ['draft']]]}" for some fields from interface?
Thanks
You can define it on field in xml like this:
<field name="your_field" attrs="{'readonly': [['state', 'not in, ['draft']]]}"/>
From the interface, you can enter developper mode (upper right corner drop down uder the user name - must be admin, abot odoo, clieck on developper mode) then edit the view - good for testing. The issue with this approach is that when the module is updated your modification will disappear.
If you want to go further search the documentations for view inheritance.
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ý
Cant get you.?
can you give more details, what exactly you want to do?