콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
2345 화면

 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
14807
1
11월 21
4933
0
1월 21
2287
8
5월 20
7820
0
12월 23
2933