Deactivate a menuitem by another module

Hi everyone
I whont to know if it’s posible to deactivate a menuitem by another module.
Eg: Module A deactivate menuitem of module B.

You can, you just need to create a xml record that updated the active field of the parent menu. Here is an example:

<record model="ir.ui.menu" id="parent_module.xml_menu_id">
     <field name="active" eval="False"/>
<record>

Just make sure to replace parent_module with the name of the module that defined the menu and xml_menu_id with the id of the menu on the parent module.

1 Like