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 like to remove the editable attribute from this view element <tree string="Sales Order Lines" editable="bottom"> in my custom module.
I do not want to replace the whole tree element for the sake of removing the attribute.
How can I remove the editable attribute from the element above?
You can override fields_view_get method for that object. Get the 'arch' by calling super method and remove the "editable" attrs from tree view. You will have to use python lxml packages and use etree to convert the arch into xml. You will get lots of examples in odoo addons of overriding fields_view_get.
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: 2/28/16, 2:23 AM|
|Seen: 880 times|
|Last updated: 2/28/16, 3:45 PM|