콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
5976 화면

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
22976
Qweb Inheritance 해결 완료
3
11월 19
7821
2
1월 24
1423
2
12월 21
22477
1
9월 20
7544