Access Management - User Roles, Access Rights Manager, Hide Menu, Hide Button, Read Only User
by Modvanta https://modvantaapps.tech/odoo-apps/access-manager/$ 9.97

Access management for Odoo: control who can see and do what - and prove who changed it
User roles that bundle groups and access rules, with dated roles, templates and export of access rights. Access rights per user, group or role from one rule: hide menu items, hide button and tab controls (always or only on matching records), hide reports, actions and views, take Create and Open off many2one fields, make a read only user or a read-only model, disable a login, restrict user sign-in to an office network and working hours, expire passwords. Hidden reports and actions are refused by URL too. Changes that loosen access can wait for a second person's approval, and every change is written to an audit log.
Written and supported by Modvanta - modvantaapps@gmail.com
What it does
Odoo's groups give whole bundles of rights. To stop one salesperson from deleting orders, seeing the pricelist or opening the Purchase app, you normally need custom groups, record rules and view changes - and afterwards nobody can tell who changed what.
This module adds Access Rules. A rule targets users or groups and holds everything to restrict: hidden menus (with everything under them), model permissions (create, edit, delete), record rules with a domain, field rules (hidden, read-only or required), interface elements (a named button, tabs, the chatter, filters, export, import, duplicate, archive, the whole Print or Action menu...) - a button or tab can be hidden only on records matching a condition, hidden reports, server actions and window actions, hidden view types or specific views, many2one options (no create, no create and edit, no quick create, no open link), and wider blocks: the external API, developer mode and the login itself. A rule can be scheduled to start and stop by itself.
A viewer called What Can This User Do? lists every rule in force for a user and what it hides or denies. When approval is switched on, a change that loosens access - taking users off a rule, switching it off or deleting it - is saved as a pending request until an Approver accepts it. Every change to the rules is logged with when, who, what happened and who it applies to.
Who it is for
Companies with shared Odoo users Give sales, warehouse and temporary staff only the menus, fields and buttons they need. | Teams with audit or ISO requirements An access review asks who changed which rights and when: the log answers it. | Administrators without a developer Set restrictions from forms, without writing groups, XML views or record rules. |
Key features
All screenshots were taken on Odoo 19 with this module installed on a clean demo database (company Northwind Trading Co). Jordan Lee is a salesperson with Purchase and Inventory rights; Casey Grant is a second administrator who is not an Approver.
Feature 1
Access rules in one list
Access Manager -> Access Rules lists every rule with the users and groups it applies to.

Feature 2
One rule, every kind of restriction
A rule names the users and groups it applies to, optional companies, and wider blocks. The Hidden Menus tab here hides the Purchase and Inventory apps and everything under them.

Feature 3
Field access
Make specific fields hidden, read-only or required for the targeted users, on any model. Here the Payment Terms of a sales order are read-only and the Pricelist is hidden.

Feature 4
Hide buttons, export and more
Interface rules hide the control that starts an operation: a named button such as the Cancel button of a sales order, Export, Import, Duplicate, Archive, tabs, the chatter, filters or the search panel.

Feature 5
The user's apps menu
Logged in as Jordan Lee, the apps menu no longer shows Purchase or Inventory, although his user has rights on both.

Feature 6
Model access per user
The Model Access tab denies create, edit or delete per model. Jordan Lee may create and edit sales orders and contacts but not delete them.

Feature 7
Field and button rules on the order
On Jordan's quotation the Pricelist field is gone, Payment Terms cannot be edited and the Cancel button is not shown. Delete was not offered in the action menu either.

Feature 8
What Can This User Do?
Pick a user and see every rule in force for them: hidden menus, restricted models, limited records, restricted fields, hidden interface elements and other blocks.

Feature 9
Approval before access is loosened
With approval switched on, Casey Grant took Jordan Lee off a rule. Nothing changed yet: a pending request shows the change, who asked and who would gain access, with Approve and Reject for an Approver. You cannot approve your own request.

Feature 10
Audit log of every change
Access Manager -> Audit Log records when, who changed it, what happened (rule created, users granted, users removed...), the rule and who it applies to. Here the removal appears once Alex Morgan approved it.

New in version 2.1: reports, actions, views and conditions
Shot on the same Odoo 19 demo database with the Sales app installed. Jordan Lee is a salesperson; the rule "Sales team - field sales" applies to him.
Feature 11
Hide reports and actions - and refuse them by URL
The Reports & Actions tab takes reports out of the Print menu and server or window actions out of the Action menu. The server refuses them too: opening /report/pdf/... or /odoo/action-... for a hidden item, or running it over RPC, is answered with an access error. A whole Print or Action menu can be hidden per model from the Interface tab.

Feature 12
Hide a button or tab only when a condition matches
An Interface line can carry a condition written with the normal domain editor. Here the Cancel button of a sales order is hidden once the order is confirmed, and the Other Info tab is hidden on orders above 3,500. A condition can use any field of the record itself.

Feature 13
What the user sees on a confirmed order
Jordan Lee opens a confirmed order: there is no Cancel button, the Print section of the action menu offers only "Quotation / Order" (PDF Quote is hidden), and Share, Mark Quotation as Sent and Generate a Payment Link are gone. Pivot, Graph and Calendar are also taken out of his view switcher on sales orders by the Views tab.

Feature 14
No Create and no Open on a many2one field
On a draft quotation the customer dropdown shows matching customers and Search more..., but no "Create" or "Create and edit..." lines, and the arrow that opens the customer is gone. This order is above 3,500, so the Other Info tab is hidden while the Cancel button is still there.

Also new
Read-Only Model switch (no create, edit or delete on a whole model in one click); Disable Login on a rule (sign-in refused and open sessions closed - administrators are never locked out); Active From / Active Until to start and stop a rule by itself; the rights viewer and the audit log cover all of the new settings.
New in version 2.2: user roles
Role based access for Odoo: stop ticking groups user by user. Shot on an Odoo 19 demo database with Sales, Purchase and Inventory installed.
Feature 15
User roles: groups and access rules in one bundle
A role bundles Odoo security groups and this module's access rules (hidden menus, buttons, fields, reports, read-only models, export and developer mode blocks). Give the role to a user and they get all of it. Several roles per user combine. A role can inherit from parent roles, be limited to one company, mark its holders read-only, and be the default role for new users.

Feature 16
One role form for everything
Groups, access rules, users and periods sit on one form. Change the role once and every user holding it is recalculated at once. Update Users' Groups, New User from Role, Copy to Company and Export are buttons on the same form.

Feature 17
Assign roles to many users - see what changes first
Assign or remove roles for many users in one go. Before you click Apply, the wizard lists the groups each user gains and loses, and warns in red when someone would become an administrator. Give a role for a period only (holiday cover, a contractor) with From and Until dates.

Feature 18
User roles dashboard
Roles, users without a role, roles ending in the next 30 days, read-only users, users with developer mode blocked and admin-level roles, per company. Every number opens the list behind it; a chart shows users per role.

Feature 19
Role templates
Ready-made templates for an employee, salesperson, sales manager, billing clerk, accountant, purchase user and manager, warehouse operator, inventory manager, HR officer, project user and a read-only auditor. Only templates whose apps are installed are listed; select them and click Create Roles.

Feature 20
Compare two roles
Pick role A and role B and see their groups, access rules, hidden menus, reports and field rules side by side: only in A, in both, only in B.

Feature 21
Roles on the user, with dated and suspended periods
The user form has a Roles tab: the roles held today, every assignment with its dates and status, and the groups the roles gave. Role suspended between two dates takes the role away for a holiday and gives it back afterwards, by itself. When a dated role ends, a fallback role can take its place.

Feature 22
Export and import roles and access rules
Export roles and access rules to a JSON file and import them into another database, for example from staging to production. Groups, menus, reports and models are matched by their technical names; anything this database does not have is listed before you import, and skipped. A file can also be saved as a role template.

Also in user roles
Create Role from User (start a role from a configured user); a Role Manager group that can create users and hand out roles without Settings access, but never roles that give administrator rights; two modes - add role groups and keep the rest, or roles define the groups exactly; the superuser is never touched and a role never takes Settings away; every role change, assignment, expiry and group change is written to the append-only audit log.
New in version 2.3: different groups per company
Odoo gives a user the same groups in every company. Here Jordan is a Role Manager at head office and an Approver at the depot, and the rights change by themselves when Jordan switches company.
Feature 23
Groups per company on the user
Tick Different Groups per Company on the user and add one line per company with the groups for that company. When the user switches company in the top bar, the groups of that company's line replace the groups of the other lines. Groups that are on no line stay as they are, and so do the user type, Settings rights and groups that come from a role. The form shows which company's groups the user holds right now.

Feature 24
Every user and company in one matrix
Access Manager > Groups per Company > Matrix lists all lines, grouped by user or by company, with who changed each line and when. Edit the groups straight in the list, or fill a line with the groups the user holds today and trim it from there.

Feature 25
Set or copy groups for many users
The Set Groups per Company wizard (also in the Action menu of the user list) replaces, adds or removes groups in one company for several users at once, or copies every company line from one user to others. Each change, and every switch a user makes, is written to the audit log with the groups removed and added.

New in version 3.0: conditions, sign-in limits and password expiry
Most of what people asked for since 2.3 is here: field rules that depend on the record, dropdowns limited to the records you allow, the chatter buttons one by one, switches that cover every model, record filters that also stop Create, and limits on where, when and with how old a password someone may sign in. Every new option is off until you set it, so existing rules keep working as before.
Feature 26
Fields that change with the record
A field rule can now carry a condition. Lena may type a contact's internal reference while it is a person, but the field disappears once the contact is a company, and the VAT number turns read-only at the same moment. Hidden, Read-Only and Required all take a condition written with the normal domain editor.

Feature 27
Limit Choices and No Export
Limit Choices narrows a dropdown to the records you allow: here the Country field only offers Belgium, the Netherlands and Luxembourg, and a save with any other country is refused on the server, so an import or a script cannot slip one past. No Export leaves the e-mail on screen but out of every export file.

Feature 28
Record filters with Create, Soft mode and dates
A record filter can now refuse Create as well as Read, Edit and Delete. Soft filters only narrow the model's own list, kanban, pivot and graph, so a clerk sees her Benelux contacts in Contacts but a French carrier still shows on the orders that use it. Filters can use dates relative to today (the last 30 days, this month) and subordinate_user_ids, which is the user plus everyone who reports to them in Employees.

Feature 29
Chatter parts, kanban links, custom filters
Hide the Send Message, Log Note or Activity button on one model, a link on a kanban card or form (always or on a condition), Custom Filter, Custom Group By and Edit Properties. Send Message and Log Note are also refused on the route the chatter posts to, and Activity on the scheduling wizard, so they cannot be called directly.

Feature 30
What the clerk sees
The same contact opened by Lena: no Send Message or Activity button, only Log note, and no Delete in the gear menu. Everyone else still gets the full chatter.

Feature 31
One switch for every model
The Everywhere tab hides a control across the whole database for the people on the rule: chatter, Send Message, Log Note, activities, Export, Import, Delete, Duplicate, Edit Properties, Custom Filter, Custom Group By and the search panel. Twelve ticks instead of one line per model.

Feature 32
Search menu without custom filters
Lena's search menu keeps the saved filters and group-bys your team set up, but Custom Filter and Custom Group By are gone, as is Export from the list.

Feature 33
Sign-in by network, day and hour
Give a rule a list of allowed networks (one per line, IPv4 or IPv6, single addresses or ranges such as 10.20.0.0/16) and a window of days and hours in the user's own time zone. A window can run over midnight for a night shift. It is checked at sign-in and on every click after it, so a user who takes the laptop home or works past the shift is signed out. Administrators are never locked out.

Feature 34
What a refused sign-in looks like
Omar's rule allows only the warehouse network from 22:00 to 06:00. Trying from anywhere else, the login page tells him why instead of a vague error.

Feature 35
Password expiry
Switch on Password Expiry in Settings and give a number of days. Users get an e-mail 7 days and 1 day before; after the date they land on this page right after signing in and cannot open Odoo until they choose a new password. Existing passwords count from the day you switch it on, so nobody is thrown out on day one, and a script signing in over the external API with an expired password is refused.

Feature 36
Two new settings
Hidden Fields Everywhere takes a hidden field out of Export, custom filters, Group By and pivot as well as off the screen. It is off by default, so rules written before 3.0 behave exactly as they did. Password Expiry is off until you give it a number of days.

Feature 37
What Can This User Do? shows the new limits
The review screen now lists the switches that hide something on every model, the networks and hours a user may sign in from, and when their password expires.

How it works, step by step
| 1 | Install the module It depends only on base and web. |
| 2 | Create a rule Access Manager -> Access Rules -> New. Pick the users or groups, then fill the tabs: menus, model access, field access, record rules, interface, reports & actions, views. |
| 3 | Check a user Use What Can This User Do? to see everything that applies to a user. |
| 4 | Switch on approval if needed In Settings, require approval for changes that loosen access. Approvers decide them under Pending Approvals. |
| 5 | Review the log Audit Log keeps the history of every change to the rules. |
Settings
On each rule, plus one company setting.
| Users / Groups / Roles | Who the rule applies to. A rule without users, groups or roles does nothing, and the form says so. |
| User Roles mode (Settings) | Add role groups and keep the rest (default), or roles define the groups exactly. In the exact mode a user's last role cannot be removed. |
| On a role | Groups, access rules, parent roles, company, fallback role, default for new users, read-only users, notification preference. |
| Companies | Limit the rule to some companies. |
| Hidden Menus | Menus hidden with everything under them. |
| Model Access | Untick Create, Edit or Delete to deny it on that model. |
| Field Access | Hidden, Read-Only or Required, per field. |
| Record Rules | A record filter (domain) for read, edit and delete. |
| Interface | Hide a button, a tab, the chatter, filters, group-by, the search panel, export, import, duplicate, archive, or the create, edit and delete buttons. |
| Block External API | Refuse XML-RPC / JSON-RPC access for the targeted users. |
| Require approval (company setting) | Changes that loosen access wait for an Approver. |
Frequently asked questions
If I remove a role, does the user lose groups I gave by hand?
Not in the default mode. Removing a role takes back only the groups that roles added; a group the user had before, or still gets from another role, stays. Switch Settings to the exact mode if roles should be the only source of groups.
When do the groups change after a company switch?
When the web client reloads after the switch, which Odoo does by itself. If several companies are ticked, the first one (the company shown in the top bar) decides. A company the user is not allowed in is ignored and the default company is used.
Is groups per company switched on for everyone after the update?
No. Nothing changes until an administrator ticks Different Groups per Company on a user. Only administrators can set it up, and Settings rights and the user type are never part of a company line.
What happens when a dated role ends?
A nightly job ends it, recalculates the user's groups and, if the role has a fallback role, gives that role instead. Suspensions work the same way in reverse: the role comes back when the suspension ends.
Can someone who is not an administrator hand out roles?
Yes. Members of the Role Manager group can create users and assign or remove roles from the User Roles menu, without access to Settings. They cannot hand out a role that gives administrator rights.
Does it replace Odoo's groups?
No. It works on top of them: the user keeps their groups, and the rule takes away what they should not see or do.
Who can approve a change?
Members of the Access Rights Manager / Approver group. The person who asked for a change cannot approve it, and an Approver's own changes apply without waiting.
Can the audit log be edited?
The log lists every change to the rules with who made it and when. It is meant as the record for an access review.
Does blocking the external API work?
Yes. On the bench Jordan Lee could log in to the web client, but an XML-RPC login with the same password was refused.
Do users need to log out after a change?
No. Hidden menus, reports, actions and views apply after the user refreshes the browser, as the rule form explains. A disabled login takes effect on the next click.
Can a hidden report still be printed from a URL?
No. A hidden report is refused at /report/pdf/..., /report/html/... and when loaded as an action, and a hidden server action is refused at /web/action/run. A hidden button is refused when called through the web client's button route. These are covered by automated HTTP tests.
Can I hide a button only on some records?
Yes. Give the Interface line a condition (for example Status = Sales Order). The button or tab is hidden only on matching records, and calling that button on a matching record is refused on the server.
Can I stop users creating a customer from the order?
Yes. On the Field Access tab pick the field and choose No Create, No Create and Edit, No Quick Create or No Open Link. A field can have several of these and still be read-only or required.
Can a restriction start and end by itself?
Yes. Set Active From and Active Until on the rule. A scheduled job checks every five minutes and applies or lifts the rule on time.
Can Disable Login lock out an administrator?
No. Members of the Settings group are never locked out by a rule, so a group-wide rule cannot shut out the people who manage access.
Compatibility
Odoo 19 Community and Enterprise | Depends on base, web | Tested 196 automated tests |
Give everyone the rights they need - and keep the record
Questions before you buy, help with setup, or a change for your own workflow - write to us and a developer answers.
SUPPORT | AUTHOR Modvanta | INCLUDED Module, setup help by email |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 5498 |
| Technical Name |
mdv_access_manager |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/access-manager/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module