Odoo 19 · 20Tools$69

Menu Visibility

Hide menus from the roles that do not need them, many at once, with a preview and a way back

Request a live demo · Odoo.sh or On-Premise only, not Odoo Online (SaaS).

3 + 18

menus: three picked, 18 more came from their subtrees, all in one change

122 to 105

menus the example user, Diego Ramos, could see before and after (read from the plan)

15

automated tests, none failing

1 click

puts back the groups every menu carried before

0

menus changed until you press Apply on a plan that still matches

Hides

a hidden menu is not a locked door: the data behind it stays readable

Odoo restricts a menu one form at a time, in developer mode, and keeps no record of what was restricted. Menu Visibility lets you pick the menus, pick who keeps them, and read what it will do before anything is written. This page walks through one real change with screenshots of an Odoo 19 database seeded with made-up data, and says where the app stops.

How it works

Why a plan comes before the change

Hiding twenty menus by hand is twenty trips through Settings, and undoing it a year later means remembering which twenty. Menu Visibility turns it into one record you can read.

1 Pick the menus and the groups

Use it when a role should stop seeing apps it has no business in, and you want to do it once, for all of them.Writes nothing yet

A menu is restricted by giving it groups, one menu at a time. A role that should lose three apps and everything under them means opening dozens of menus.

Open Settings > Menu Visibility and create a change. Menus takes the menus to restrict, Visible only to takes the groups that keep them, and Include everything underneath (on by default) takes each menu's whole subtree along. Check against names a person to preview, and Why is a note for whoever reads it in a year.

The form shows Menu Visibility only to users in the Settings group.

A draft: three menus, two groups that keep them, Diego Ramos to check against.

Menu Visibility: 1 Pick the menus and the groups

2 Work it out first

Use it when you want to read the whole change, and one person's result, before anyone loses a menu.Plan only, no writes

Work out the change fills a plan: the number of menus it would change, the number already correct, one line per menu, how many came from the subtrees, and a warning when you picked a top-level menu, because that hides a whole app. In this run the three picked menus became 21 menus, 18 of them from the subtrees.

The plan: 21 menus to change, none already correct, then one line per menu.

The end of the plan: the subtree count, the top-level warning, and the count for the person named in Check against.

Restricting Calendar, Contacts and Dashboards to the Sales and Purchase groups changed 21 menus. The plan said Diego Ramos could see 122 menus now and would see 105 afterwards. That count is measured, not guessed: the app applies the change inside a database savepoint, counts what the person can see, and rolls it back.

If the last visible entry of a folder is restricted, the folder goes with it, and the plan reports those extra menus.

Menu Visibility: 2 Work it out first
Menu Visibility: 2 Work it out first

3 See the result for two people

Use it when you need to know the right people kept their apps and the wrong ones lost them.Apply writes menu groups

Apply asks for confirmation, records the groups each menu carried, then writes the new groups. People outside the listed groups stop seeing the menus; people inside keep them. The app list below is the apps menu in the top bar, opened as each user.

Diego Ramos, a warehouse user, before the change.

Diego Ramos after Apply: Calendar, Contacts and Dashboards are gone.

Mia Chen is in a listed group and keeps every menu.

After Apply, Diego lost the three menus and Mia Chen, who holds Sales / User: All Documents, kept all of them. The same change gave two different answers, which is the point of naming groups.

A menu a person keeps is decided by group membership, including groups that imply others. Check the person who matters before applying, and use Check against to do it.

Menu Visibility: 3 See the result for two people
Menu Visibility: 3 See the result for two people
Menu Visibility: 3 See the result for two people

4 Put it back

Use it when the change was a trial, or the request was withdrawn.Restores recorded groups

An applied change shows Put it back . It restores the groups each menu carried before, and the record becomes Reverted. The list shows every change and its state.

Put it back writes the groups that were recorded when the change was applied. A group someone added to one of those menus afterwards is removed, and if two changes overlapped, reverting the earlier one restores the groups from before it, which undoes the later one while the later one still reads Applied. Revert changes in the reverse order of applying them.

An applied change, with Put it back available.

A change that was applied and then put back.

The list: Applied, Reverted and Draft changes with the number of menus each touches.

Menu Visibility: 4 Put it back
Menu Visibility: 4 Put it back
Menu Visibility: 4 Put it back

5 Refusals that protect you

Use it when a change was edited after planning, or was started without a group.Blocks the write

Apply is refused when the selection changed after the plan was worked out, because the list on screen would describe a different change. The form also refuses to plan without a group, since a menu with no groups is visible to everyone and the change would publish menus instead of hiding them.

The plan step itself also raises "Pick at least one group" for a record that reaches it with no groups, for instance from an import; that message is covered by an automated test rather than a screenshot.

Removing a group after planning, then pressing Apply: refused.

A change with no group cannot be worked out: the form flags Visible only to.

Menu Visibility: 5 Refusals that protect you
Menu Visibility: 5 Refusals that protect you

6 Where it stops

Use it when you are deciding whether this is enough on its own.Hides, does not lock

Menu Visibility removes menus from the interface. It does not change who can read the records.

Diego Ramos opening the Contacts list by its address, after Contacts was hidden from his menus.

A hidden menu is not a locked door. After the change, Diego Ramos still opened the Contacts list by its address, and an automated test confirms he can still read the records. Use access rights and record rules for real restrictions.

Menu Visibility: 6 Where it stops

Questions buyers ask

Does it hide menus from administrators too?

It hides a menu from everyone who is not in one of the groups you list. An administrator who holds one of those groups, or a group that implies one, keeps the menu.

Is it a security feature?

No. It hides menus; the pages and records behind them stay reachable by address and readable under the existing access rights.

Can I undo a change?

Yes, with Put it back, which restores the groups recorded when the change was applied. Revert overlapping changes in the reverse order.

Does the plan change anything?

No. Planning writes only the plan to the change record. The menu counts are measured inside a savepoint that is rolled back.

Requirements

  • Odoo 19.0 or 20.0. The App Store sells each version separately, so buy the one that matches your database.
  • Odoo.sh or On-Premise only. Third-party apps cannot be installed on Odoo Online (SaaS) databases. Check your hosting before buying.
  • Module mh_menu_visibility, version 19.0.1.0.8, licensed OPL-1.