Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odgovori
1152 Prikazi

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

Avatar
Opusti
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
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
sep. 24
1026
0
sep. 24
675
3
jul. 25
1859
1
jun. 25
632
1
jun. 25
1985