Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
2976 Представления

Hi, I want to add a new menu for a model in the portal user interface.

The issue is that I have created the necesary template, added it to the manifest (and the portal dependency) and still not appearing. Why? Every help would be apreciated.

Here is my code:

```

odoo>
​template id="portal_my_home" inherit_id="portal.portal_my_home">
​xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
​t t-call="portal.portal_docs_entry">
​t t-set="url">/my/presupuesto
​t t-set="title">Presupuesto
​t>
​xpath>
​template>
odoo>

```

Аватар
Отменить
Лучший ответ

Hi,

Please refer this code from odoo addons for version 16.

This adds the section “Invoices & Bills” in portal page.Make sure you added the file in manifest.

<template id="portal_my_home_invoice" name="Show Invoices &amp; Bills" inherit_id="portal.portal_my_home" customize_show="True" priority="30">
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside">
<t t-call="portal.portal_docs_entry">
<t t-set="title">Invoices &amp; Bills</t>
<t t-set="url" t-value="'/my/invoices'"/>
<t t-set="placeholder_count" t-value="'invoice_count'"/>
</t>
</xpath>
</template>

Regards

Аватар
Отменить
Автор

how is that related to my issue? I see this example but I want to show my own menu

Related Posts Ответы Просмотры Активность
6
июн. 24
6512
0
июн. 23
1186
1
мар. 24
2041
1
окт. 23
2334
1
сент. 23
5102