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
コメントを追加
アップデート通知
このコミュニティについて
This forum is for discussions and sharing of notes relating to Odoo development ガイドラインを読む
Question tools
71 follower(s)
統計
質問: 2019/04/10 3:42 |
Seen: 1347 times |
最終更新: 2025/05/05 20:52 |