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.
How to make a field readonly from a function? or Can we call a function on readonly attribute like "readonly="function_name" in odoo9?
I want to make the "Pricelist" and "Payment Term" readonly if pricelist and payment term is set for the customer in sale order form.
It should be done on onchange of the customer field how can I do this in odoo9?
Is it possible to call a function on readonly attribute like following?
field_name = fields.Many2one('related_model', 'label', readonly="function_name")
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: 9/8/16, 9:48 AM|
|Seen: 466 times|
|Last updated: 9/9/16, 2:33 AM|