Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
5966 Представления

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 Ответы Просмотры Активность
2
дек. 22
22954
Qweb Inheritance Решено
3
нояб. 19
7787
2
янв. 24
1407
2
дек. 21
22441
1
сент. 20
7516