Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
2331 Vues

 How I add a button on header of tree view ?

Thanks in advance

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Publications associées Réponses Vues Activité
2
déc. 22
14801
1
nov. 21
4928
0
janv. 21
2279
8
mai 20
7812
0
déc. 23
2931