I would like to know how to add menu items to the website portal user menu. So that I can put a new menu item before logout and point it to a controller.
Or if it's possible to just get a document for download.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I would like to know how to add menu items to the website portal user menu. So that I can put a new menu item before logout and point it to a controller.
Or if it's possible to just get a document for download.
hello
try with below code.
<template id="website_menuitem" inherit_id="website.layout" name="header menu">
<xpath expr="//li[@id='o_logout']" position="before">
<li>
<a href="/controllername" role="menuitem">Menu name</a>
</li>
</xpath>
</template>
I hope this will helps you.
Thanks it did the trick. I was trying to it like I found in website_forum module, but it didn't work.
<template id="tabla_instructions_menu_item" inherit_id="website.user_navbar">
<xpath expr="//div[@id='o_website_add_page_modal']//ul" position="inside">
<li groups="website.group_website_designer"><a href="/get-instructions"><i class="fa fa-comment"/><p>Instructions</p></a></li>
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
8
jun. 22
|
16944 | ||
|
1
abr. 19
|
4473 | ||
|
2
mar. 18
|
10035 | ||
|
4
jun. 17
|
5874 | ||
|
2
abr. 17
|
6846 |