How I add a button on header of tree view ?
Thanks in advance
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello
Try with below code:
<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-extend="ListView.buttons">
<t t-jquery="button.oe_list_add" t-operation="after">
<t t-if="widget.model == 'yourmodelname'">
<button
class="oe_button oe_highlight"
type="button">My Button</button>
</t>
</t>
</t>
</templates>
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
2
dic 22
|
15819 | |||
|
1
nov 21
|
5939 | |||
|
0
gen 21
|
3060 | |||
|
8
mag 20
|
8899 | |||
|
0
dic 23
|
3610 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.