Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
6079 Widoki

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

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
gru 22
23421
Qweb Inheritance Rozwiązane
3
lis 19
8191
2
sty 24
1624
2
gru 21
22916
1
wrz 20
7897