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've try this,
in the xml file of my custom module, and also have tried , in a js file.
I think that thoose buttons are loaded after the view is loaded.
How may i hide the buttons then?
I've found a solution for my problem.
To hide more, print and attachment buttons, i've create a view named base.xml in my_module/static/src folder, with the next code
<?xml version="1.0" encoding="utf-8"?>
<t t-jquery="div.oe_form_dropdown_section" t-operation="replace">
<t t-if="widget.session.active_id === 516">
<t t-if="widget.session.active_id !== 516">
....... original base.xml div
where 516 is the id of view i want to hide buttons.
I think there has to be a way to avoid to set an id value, but right now this is working fine.
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: 5/5/16, 6:11 AM|
|Seen: 695 times|
|Last updated: 5/6/16, 6:49 AM|