コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5874 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
2
12月 22
22715
3
11月 19
7529
2
1月 24
1301
2
12月 21
22178
1
9月 20
7312