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

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
2589
7
10月 18
22397
2
11月 17
6621
0
4月 17
2632
3
6月 16
4804