Skip to Content
Menu
This question has been flagged
2 Replies
2201 Views

i want to change the Name of the "Contacts" Menu (Submenu) after selecting the main "Contacts" on the dropdown left.

OdooV12 Community

i know how to change it with code in genrell but my problem is that i do not know the ID of this menu ite.

How can i find that out by myself for future tasks and for this task?

<record model="ir.ui.menu" id="base.??????????">
<field name='name'>NEW NAME</field>
</record>

Avatar
Discard
Best Answer

Hi Jack,

The XML ID of the menu is "contacts.res_partner_menu_contacts". If this does not work, override the action as well and change the name of the action also.

The XML ID of the action is "contacts.action_contacts".

Avatar
Discard
Best Answer

Hi,

To get the ID of any menu what you can do is that, just activate the developer mode and navigate to Settings -> Technical -> User Interface -> Menu items, and search the name of the menu and open it. Then click on the debugger button near the logged in users name and click View Metadata. There you can see the XML ID.


See this video: https://www.youtube.com/watch?v=rK5Qe8mA89Q


Thanks

Avatar
Discard