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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
How to modify a qweb template?
Diselesaikan
|
|
2
Des 22
|
22961 | |
Qweb Inheritance
Diselesaikan
|
|
3
Nov 19
|
7795 | |
|
2
Jan 24
|
1414 | ||
Replace all Qweb template using inheritance
Diselesaikan
|
|
2
Des 21
|
22450 | |
|
1
Sep 20
|
7523 |