Vishal Bakhaswala
Vishal Bakhaswala

Reputation: 11

Hide Only Modules Tab Menu in odoo

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

I want to hide this menu.

Upvotes: 0

Views: 2149

Answers (1)

Andrius
Andrius

Reputation: 21188

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).

Upvotes: 1

Related Questions