Skip to Content
Menu
This question has been flagged
1 Odpoveď
1030 Zobrazenia

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

Avatar
Zrušiť
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
Zrušiť
Related Posts Replies Zobrazenia Aktivita
1
sep 24
917
0
sep 24
566
3
júl 25
1393
1
jún 25
469
1
jún 25
1310