Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
6200 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
2
dic 22
23716
3
nov 19
8528
2
gen 24
1914
2
dic 21
23293
1
set 20
8243