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

Hello,

I was trying to inherit main website layout menu (header navigation bar). Is there is any way to within new module to add new menu items? instead of doing it from the front end?

Any example and help would be appreciate

 

Regards

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello,


You just need to create a record which create a website.menu record in your new module with parent_id=ref('website.main_menu') as record.

The xml record example is this:


https://github.com/odoo/odoo/blob/8.0/addons/website/data/data.xml#L16

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
How to modify a qweb template? แก้ไขแล้ว
2
ธ.ค. 22
22954
Qweb Inheritance แก้ไขแล้ว
3
พ.ย. 19
7786
2
ม.ค. 24
1406
2
ธ.ค. 21
22440
1
ก.ย. 20
7516