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'm trying to hide some buttons when I'm not in edit mode. I set a button in the header and use the class oe_edit_only :
<button name="refresh_record" string="Refresh" type="object" class="oe_edit_only"/>
In the header it works perfectly. Then in the object I have some lines (one2many) and in each line I have a button with the same syntax. Unfortunately, the oe_edit_only class is not transmitted to the tree. The button in subtree still available whatever the state of the form. I made an inspect in HTML mode and no class is specified in the subtree button yet I have a class="oe_edit_only" in the xml view definition
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: 4/22/14, 2:01 PM|
|Seen: 990 times|
|Last updated: 3/16/15, 8:10 AM|