0
votes

How do I hide just the Module Tab Menu in odoo? I want to make a module which module hides this Module Tab Menu in odoo.

ODOO Menu :

Modules

  • Local Modules
  • Installed Modules
  • Update Module List
  • Apply Scheduled Upgrades
  • Apps

I want to hide this menu.

1
Do you want to hide setting menu? - Atul Arvind
No just the module menu as i describe in my question. - Vishal Bakhaswala
it is only visible to group Module Features. if you want to hide the menu from non admin user you can remove user from the group. - Atul Arvind

1 Answers

1
votes

To hide a menu, you have to assign access rights group to it. You can do it via custom module, overriding that menu or assigning it through menu management (in Odoo). To do it via module, can do something like this (in appropriate xml):

<menuitem id="base.menu_management" name="Modules" parent="menu_administration" sequence="0" groups="some_group"/>

Doing this, menu will be visible to users that have that group only. There is no "hide" feature to hide menu for the sake of hiding. But using groups can be accomplish same thing.

Also it is possible to force delete menu if you for some reason don't need it. For example:

<delete id="base.menu_management" model="ir.ui.menu"/>

But keep in mind that deleting menu can lead to errors if any other menu uses it as parent. Also Odoo will throw warning that such external ID was not found when you upgrade base module (but it will work anyway).