Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2337 Visualizzazioni

 How I add a button on header of tree view ?

Thanks in advance

Avatar
Abbandona
Risposta migliore

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>

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
dic 22
14803
1
nov 21
4928
0
gen 21
2281
8
mag 20
7814
0
dic 23
2931