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

I want to know where I can see a list of all the menuitem to be able to create new ones through an addon and choose a parent

아바타
취소
작성자 베스트 답변

I find menulist in table 'ir_model_data'.

If concat columns module and name with a dot I have my parent ID: puchase.menu_purchase_control

아바타
취소
베스트 답변

Good ..>Thank You

아바타
취소
베스트 답변

Hai,

You can see the list of the menu items from the UI, for that activate the developer mode, then  navigate settings -> technical -> user interface -> menu items, here you can see all the menu items in the db.

If you want to get the list of menu through the code, you can do it like this,

menu_list = self.env['ir.ui.menu'].search([])

To get the technical name of the menu, open the menu form from UI, from settings -> technical -> user interface -> menu items, open the corresponding menu, then click on lady debugger button, then select the View metadata, there you can see the XML ID, this is the technical name of the menu. Open the developer mode to see the lady debugger button. Thanks



아바타
취소
작성자

In settings -> technical -> user interface -> menu items I cant view "name" to reference D:

so are you looking for the technical name of the menu ? To give as the parent for some other menus....

작성자

I can't view technical name :(

click the view meta data under lady debugger button, there you can see the XML id

관련 게시물 답글 화면 활동
0
12월 18
2749
7
10월 18
22600
2
11월 17
6736
0
4월 17
2747
3
6월 16
4946