Odoo Help

1

How to inherit the qweb headers menu within new module?

By
DM
on 2/10/15, 7:13 AM 1,032 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

0
Nhomar Hernandez
On 7/6/15, 10:53 PM

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 2/10/15, 7:13 AM
Seen: 1032 times
Last updated: 10/23/15, 9:18 AM