Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
3 Відповіді
7064 Переглядів

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

Related Posts Відповіді Переглядів Дія
0
груд. 18
2481
How to delete menuitem? Вирішено
7
жовт. 18
22235
2
лист. 17
6483
0
квіт. 17
2585
3
черв. 16
4760