Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2636 มุมมอง

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
5819
0
มิ.ย. 23
1004
1
มี.ค. 24
1559
Portal user, access to several customers แก้ไขแล้ว
1
ต.ค. 23
2017
1
ก.ย. 23
4642