Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2877 Vizualizări

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>


Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
oct. 23
2656
1
mai 23
3801
1
mar. 23
2794
2
mar. 15
6054
2
dec. 23
1919