İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
5862 Görünümler

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

Avatar
Vazgeç
En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Ara 22
22660
Qweb Inheritance Çözüldü
3
Kas 19
7490
2
Oca 24
1270
2
Ara 21
22135
1
Eyl 20
7283