跳至內容
選單
此問題已被標幟
1 回覆
1181 瀏覽次數

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

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
9月 24
1036
0
9月 24
677
3
7月 25
1879
1
6月 25
650
1
6月 25
2055