Access Rights Management | Hide Field, Menu, Button, Tab | Read Only User | Record Rules | Login IP & Hours
by WebThreenity https://webthreenity.netlify.app$ 149.00
WebThreenity · Odoo 19 · Community and Enterprise · We set it up with you, free
Each person sees what they should. The server makes sure.
Hide fields, menus, buttons and tabs, lock prices, make read-only users, keep salespeople on their own records and allow logins from the office in working hours, without code.
“How to hide field from the specific user” has been read 15,379 times on the Odoo forum, “How to remove create&edit and the external link of a field” 16,990 times, “How to restrict user login with IP address?” 15,372 times, and a question on switching developer mode off for users who are not administrators 14,317 times. In Odoo each answer is a new group, an inherited view in XML and a record rule, redone at every upgrade, and a field hidden in a view still leaves by an export, a group by or the API. Here you make a profile, pick the people (or a group, or a company) and tick what they lose: fields, menus, buttons, tabs, actions, records, chatter, developer mode, login place and hours. It takes effect on their next page, and the server refuses what the screens hide.
One day at Harbor Supply, step by step
Screens of Harbor Supply Ltd, a marine wholesaler in Portland: Grace the administrator, Sara and Tom the salespeople, Nadia the accountant and Owen the external auditor, each captured with their own login on Odoo 19 Community.
And on top of that, included
Refused by the server, not only hidden
A hidden field comes back empty to exports, group by and the API. A read-only price, a required phone, a blocked archive, a Send message and a record outside the filter are refused by the server, whatever the screen, the keyboard shortcut or the script. 62 automated tests on each Odoo version prove it as real users.
Your rules survive the next Odoo
Export writes every profile to a file of names: models, fields, logins, menus. Import it into the live database or into your next Odoo version and the profiles come back, with a list of anything that version no longer has. No need to uninstall before an upgrade.
The session ends with the hours
Login place and hours are checked at login and on every page: at 20:00 the salesperson's session ends, not at her next login. The message says why, so nobody calls you.
The administrator is never locked out
Profiles only take rights away, and never from an administrator. Odoo's own models cannot be restricted, so a wrong tick can never close the settings to the person who fixes it.
Rules follow each list inside a form
A rule on order lines also reaches the lines table inside the order, where the cost column usually stays. Each embedded list follows the rules of its own model.
Who is restricted, at a glance
The user form lists the profiles that apply to the person, directly or through a group, in the company they work in.
What it does
Fields: hidden, read-only, required
Pick fields by their label. Hidden: gone from forms, lists, kanban, search, group by and exports, and empty for the API. Read-only: the server refuses a new value and takes the default on create. Required: the server refuses a record without it.
Screens: menus, buttons, tabs, filters
Hide any menu, any button of a form or a list header, any tab of a form and any filter or grouping of the search, chosen from lists the app reads from your screens. Remove the link that opens a related record and the Create entries of the dropdowns.
Actions per model
No create, edit, delete, duplicate, archive or restore, import, export, print, or Action menu, model by model. The button disappears and the server refuses the call.
Records: only their own
Only the records where a field is the person (Salesperson, Responsible, Assigned to), or any filter such as customers with a tag. Choose: see and change only these, or see everything and change only these. Joined to Odoo's own record rules.
Chatter
Hide the whole chatter, or only Send message, Log note, Activities or Followers, per model. Posting from the chatter or the API is refused too; emails sent by Odoo's own buttons keep working.
Read-only users
One tick: the person opens everything they could open before and changes nothing on any business model. Preferences, chat and wizards keep working.
Login: place and hours
Cannot log in at all, log in only from IP addresses or ranges (203.0.113.0/24), or only on chosen days between two hours, in each person's time zone.
Developer mode off
Developer mode is switched off for the people you choose, even with debug=1 typed in the address.
Per user, group and company
A profile applies to named users, to everyone in a group, and in every company or only in the companies you pick.
Export and import profiles
Profiles go to a JSON file and back, matched by names, from a test database to the live one or to the next Odoo version.
Getting started
- Install the app. It needs Discuss (mail), which every Odoo database has.
- Open Settings > Users & Companies > Access Profiles and create a profile: its name, its users or groups, and its companies if you have several.
- Add the models you want to restrict and tick what these people lose, tab by tab: Actions, Fields, Screens, Chatter, Records.
- Set the whole account on the profile: read-only user, hidden menus, Login place and hours, developer mode.
- Ask one of these people to reload the page. Check their user form: the Access profiles tab lists what applies to them.
Requirements
- Odoo 19.0, Community or Enterprise, on your servers or on Odoo.sh (Odoo Online does not take store apps).
- Discuss (mail). Nothing else: the rules work on every app, standard or custom.
- Administrators (Settings) manage the profiles and are never restricted by them.
Questions
Do you help us set it up?
Yes, we set it up with you, free: your profiles, the fields and buttons to hide, the record filters and the login hours, on a copy of your database, until each person sees exactly what they should.
Is it only hidden on the screen, or refused by the server?
Refused by the server too. Create, edit, delete, duplicate, archive, import, export, print, read-only and required fields, chatter posts and record filters are checked on the server, so an export, a keyboard shortcut, a script or the API meets the same rule. A hidden field comes back empty to the API and cannot be exported or grouped by.
Can I lock myself out?
No. Administrators are never restricted, profiles only take rights away, and Odoo's own technical models cannot be chosen.
Does it replace Odoo's groups?
No, it works on top of them. Groups still decide what a person may open; a profile takes away what they should not see or do, without a new group for each case.
We have Simple Access Control 1.x.
Update the module: your profiles keep every rule, and the new tabs are there, empty, until you tick them.
What happens when we upgrade Odoo?
Export your profiles to a file before the upgrade and import them after: models, fields, menus and logins are matched by name, and the import lists anything the new version no longer has.
Do login hours follow our time zones?
Yes, each person's own time zone, set on their user. Night shifts across midnight work too (22:00 to 06:00).
Behind a proxy, which IP is checked?
The address Odoo receives. Behind a reverse proxy, start Odoo with proxy mode so it reads the visitor's address, as for any IP-based setting.
Several companies?
A profile applies in every company or only in the companies you choose, following the company the person works in.
Does it slow Odoo down?
No. The rules of each person are computed once and kept in memory until a profile changes; a page costs a dictionary lookup.
Good to know
- We set it up with you, free, and stay with you until it works: free support, free corrections and free adaptations to your rules.
- 62 automated tests on each of Odoo 16, 17, 18, 19 and 20, run as real users: two salespeople, an accountant, a read-only auditor and an administrator who must never be locked out; login place, hours and developer mode tested through the web server.
- The best-selling access app of the store costs three times this, and its record conditions are a second app. This one has record filters, login place and hours, read-only users and the file export included. One-time purchase, updates included.
- Odoo 16, 17, 18, 19 and 20 from the first day.
- Try it first: the free trial is one click away, with the Live Preview button at the top of this page.
WebThreenity develops this app independently. Odoo is a trademark of Odoo S.A.
Free trial · 7 days
Try Simple Access Control in your own Odoo database
An Odoo 19 database of your own where the salesperson already has a profile: no margins or costs on quotations, no deletions, no exports, no Sales reporting. Open the same quotation as manager and as salesperson to compare, then change the profile and watch it apply on their next page.
A database of your own · Access sent the same day · No credentials, no credit card
Get my access or the Live Preview button at the top of this pageMade by WebThreenity
Need help setting up your access rights?
WebThreenity implements, adapts and supports Odoo: rollouts, custom modules, migrations and integrations. A question about this app, or a particular need? Write to us.
Write to WebThreenity or visit webthreenity.netlify.app| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
Discuss (mail)
|
| Lines of code | 1030 |
| Technical Name |
simple_access_control |
| License | OPL-1 |
| Website | https://webthreenity.netlify.app |
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