コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
2259 ビュー

 How I add a button on header of tree view ?

Thanks in advance

アバター
破棄
最善の回答

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>

アバター
破棄
関連投稿 返信 ビュー 活動
2
12月 22
14646
1
11月 21
4748
0
1月 21
2190
8
5月 20
7648
0
12月 23
2844