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")
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
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: 314 times|
|Last updated: 9/9/16, 2:33 AM|