Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I would hide fields dynamically from python, required them, or read-only; from python I've seen that can return a 'domain' for a field, is it possible this same way also return 'attrs'?
res['domain']['sale_tax'] = repr(sale_tax_domain)
res['domain']['purchase_tax'] = repr(purchase_tax_domain)
attrs can be set using domain. You can set the domain to use turn readonly, required, and invisible of the attrs based on the value of a field (or combination of those). Or, if you really need, create a function field of boolean type to calculate the readonly, required, and invisible, then use that in the attrs domain.
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 1/8/15, 4:30 PM|
|Seen: 1246 times|
|Last updated: 3/16/15, 8:10 AM|