Skip to Content
Menu
This question has been flagged
1 Reply
5838 Views

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
Discard
Best Answer

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
Discard
Related Posts Replies Views Activity
2
Dec 22
22606
3
Nov 19
7435
2
Jan 24
1241
2
Dec 21
22087
1
Sep 20
7235