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