OdooWiki OCA HUB

Base Menu Visibility Restriction

base_menu_visibility_restriction folder_open OCA/server-ux open_in_new
Extra Tools License: AGPL-3

This addon lets you assign "excluded groups" to menu items. If a user belongs to a group that is assigned to a menu item as an excluded group, the user will not be able to see the menu item.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets administrators hide specific menu items from chosen user groups by adding "Excluded Groups" to each menu, so users in those groups no longer see the menu.

This module adds a new field called Excluded Groups to every menu item in Odoo. Administrators can open a menu's access settings and, next to the existing allowed groups, pick one or more user groups that should NOT see that menu.

When Odoo builds the list of menus a user can see, it now also removes any menu whose Excluded Groups include a group the user belongs to. This happens automatically every time menus are loaded, so the restriction applies immediately without extra configuration.

  • Where it appears: the menu access editing screen (the same screen used to set which groups can see a menu), where a new multi-select field for excluded groups is shown.
  • Business rule: if a user is in any group listed as excluded for a menu, that menu is hidden from them, even if other settings would normally show it.
  • Scope: it affects the ir.ui.menu model and therefore all menus across Odoo.

No new menus, reports, emails or scheduled actions are added. The module only changes how menu visibility is calculated and adds the configuration field.

Depends on

web_tour
Models and fields (1)
  • ir.ui.menu · extends an existing modelexcluded_group_ids (Excluded Groups)

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 7 confirmed, 2 with no information of 9 versions.

Sources · Odoo 17.0

Confirmed on 2026-11-03 in branch 17.0 of OCA/server-ux.

terminal Installation and usage

OCA documentation · Odoo 19.0

To use this module, you need to:

  • Activate the developer mode
  • Go to Settings \> Technical \> User interface \> Menu Items.
  • Search for any menu and edit it.
  • Update "Excluded groups" with one group.
  • Login with a user of that group, and you won't see such menu.

You can try with demo data for the menu Apps \> App Store and user demo.

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.