Welcome!
This community is for professionals and enthusiasts of our products and services. Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
Modifying web template for generating buttons to include class attribute
<?xml version="1.0" encoding="UTF-8"?>
<templates id="templatessdas" xml:space="preserve">
<t t-extend="ListView.row.text_button">
<t t-jquery="*">
this.context.setAttribute('t-att-class', "disabled ? 'oe_list_button_disabled btn_txt oe_link ' : 'btn_txt oe_link ' + widget.class")
</t>
</t>
</templates>
By definition of jquery without position attribute will execute a javascript code.
Discovered by: Master Jeremy
Reference:
https://www.odoo.com/fr_FR/forum/aide-1/question/what-is-t-jquery-in-qweb-72802
Add a Comment
Keep Informed
About This Community
This forum is for discussions and sharing of notes relating to Odoo development Read Guidelines
Question tools
71 follower(s)
Stats
Asked: 4/10/19, 3:42 AM |
Seen: 1340 times |
Last updated: 5/5/25, 8:52 PM |