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
|Asked: 9/8/16, 9:48 AM|
|Seen: 268 times|
|Last updated: 9/9/16, 2:33 AM|