跳至內容
選單
此問題已被標幟

Hi. I''m working on a Odoo v16. What I want to do is basically display some custom xml in the backend of the community version. With the code bellow, it worked fine in a 14.0. But on a 16.0 my stuff is displayed above the top Navbar (The one where the clickable menus are displayed). And this Navbar is at the bottom of the screen with the code bellow
Should I still inherit webclient_bootstrap? Or has this changed in 16.0?


 


<template id="custom_template" inherit_id="web.webclient_bootstrap" name="Custom Template">
    <xpath expr="//t[@t-set='body_classname']" position="after">
        My stuff
   </xpath>


</template>


頭像
捨棄
最佳答案

Hi, 

Please try this,

<template id="custom_template" inherit_id="web.webclient" name="Custom Template">


    <xpath expr="//nav[@class='o_main_navbar']" position="after">


        <div>custom XML code </div>


    </xpath>


</template>


Regards

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
10月 23
2667
1
5月 23
3813
1
3月 23
2812
2
3月 15
6066
2
12月 23
1937