Skip to Content
Menu
This question has been flagged
1 Reply
1082 Views

Hi how do i inherit a "+ New" button in a tree? pls help i have no idea

Avatar
Discard
Best Answer

You can try inheriting the template below for a 'New' button in tree view.

 <t t-name="account.ListView.Buttons" t-inherit="web.ListView.Buttons" t-inherit-mode="primary">
<xpath expr="//div[hasclass('o_list_buttons')]" position="inside">

                //Contents
        </xpath>
 </t>


Hope it helps

Avatar
Discard
Related Posts Replies Views Activity
1
Sep 24
965
0
Sep 24
610
3
Jul 25
1525
1
Jun 25
556
1
Jun 25
1511