Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
2147 Vistas

 How I add a button on header of tree view ?

Thanks in advance

Avatar
Descartar
Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
dic 22
13869
1
nov 21
4041
0
ene 21
1594
8
may 20
6947
0
dic 23
2518