Skip to Content

Access & Controls · Odoo 20, Odoo 19, Odoo 18

Rule Restriction

Decide per user what each person can create, edit, delete, see and click in Odoo

Rule Restriction is an app for Odoo 18, 19 and 20 for per-user access control without custom groups. Block create, edit and delete on any model, hide buttons, menus, fields, tabs and reports, hide or allow-list records, and limit users to chosen warehouses, journals and pricelists.

Key features

The problem

Standard Odoo access groups work at the level of a whole app. To stop one person from deleting invoices or seeing one warehouse, administrators clone groups or edit master data. Every cloned group is one more thing to maintain, and one mistake can expose data or block a colleague. Over time nobody is sure who can do what.

Screenshots

Rule Restrictions list with six rules, their models, companies, assigned users and restriction scope
All rules on one list, each with its users, company, models and the kinds of restriction it holds.
Sales team rule: delete blocked on Contact and Sales Order, Cancel button and Sales/Reporting menu hidden
One rule combines several layers: blocked operations, hidden buttons and hidden menus.
Add Restriction wizard with target model Sales Order, Hidden elements and Buttons chosen, buttons picked by label
The Add restriction wizard goes step by step, so nothing technical has to be typed.
Quotation seen by a restricted user: no Cancel button, only Order Lines and Quote Builder tabs, read-only pricelist
For the restricted user the Cancel button, the Other Info tab and the Sales Reporting menu are gone.
Animated demo: the Rule Restrictions list with the Sales team: quotations rule highlighted Play demo
The demo opens a rule and adds restrictions with the wizard.

What it does

Block actions per user

  • Block Create, Edit and Delete on any model for the users you select.
  • Apply restrictions in the interface by default, and add optional server-side (RPC) enforcement of create, write and unlink.

Hide parts of the interface

  • Hide buttons, menus, fields, tabs, groups, statusbar values and actions per user.
  • Keep Odoo core untouched. Interface hiding needs no core patches.

Limit which records users see

  • Hide selected records of a model, or allow only selected records, for the rule users. A record rule enforces it, so it holds outside the interface too.
  • Limit users to chosen warehouses, journals and pricelists. Names can still appear in dropdowns, but transfers follow granted warehouses, payments offer only granted journals, and only granted pricelists can be edited.

One rule, many users

  • Combine every restriction layer in one card-based rule form.
  • Assign one rule to many users at once.
  • Find all rules in one Restrictions app and menu.

Safe by design

  • Settings administrators are never restricted, so a rule cannot lock you out.
  • Rule Restriction Managers are restricted like other users, so they can test the rules they build.
  • Old records that reference hidden master data still open, and master data is never modified or deleted.

Who it is for

A good fit for

  • Odoo administrators who need finer access control than standard groups give.
  • Companies that must protect sensitive warehouses, journals or price lists.
  • Teams with temporary staff, contractors or external users who need limited rights.
  • IT leads who want interface guardrails with optional server-side enforcement.

Not a fit for

  • Odoo Online (SaaS) databases, because Odoo Online does not allow third-party apps.
  • Teams that need warehouse, journal or pricelist names hidden from every dropdown.

Install

Requires: Inventory (stock), Invoicing (account), Discuss (mail)

  1. Buy Rule Restriction on the Odoo Apps Store with the Odoo account linked to your database.
  2. Add the module to your Odoo.sh repository or your on-premise addons path.
  3. Update the apps list and install Rule Restriction. Odoo installs Inventory, Invoicing and Discuss with it if they are missing.

Sold for Odoo 18, 19 and 20, Community and Enterprise, on-premise and on Odoo.sh. Odoo Online does not allow third-party apps, so it cannot be installed there.

Every purchase includes 90 days of free support from FlexCode Systems.

Configure

  1. Open the Restrictions app and create a new rule.
  2. Pick the users the rule applies to and the model it controls.
  3. Combine the layers you need in the same rule card: blocked operations, hidden interface elements and record visibility.
  4. Test each rule with a user who is not a Settings administrator, because Settings administrators are never restricted.
  5. If restricted users could reach Odoo through the API, turn on the optional server-side enforcement.
SettingWhat it does
Target usersThe users the rule applies to. One rule can cover many users.
ModelThe Odoo model whose create, edit and delete actions the rule controls.
Blocked operationsCreate, edit and delete can each be blocked for the selected users.
Hidden interface elementsButtons, menus, fields, tabs, groups, statusbar values and actions to hide from the selected users.
Record visibilityHidden or allow-listed records of a model, and granted warehouses, journals and pricelists. Users on no rule keep full access.
Server-side enforcementOptional. Also blocks create, write and unlink over RPC, in addition to the interface.
Settings administratorsAlways exempt from every restriction. Rule Restriction Managers are not exempt.

How to use it

Stop a user from deleting records on one model

  1. Create a rule and select the user or users.
  2. Choose the model whose records they must not delete.
  3. Block Delete and save. Those users no longer see the delete option in the interface.
  4. Turn on server-side enforcement if they could also reach the data through the API.

Limit a user to their own warehouse and journals

  1. Create a rule for the user.
  2. In the record visibility layer, allow-list the warehouses, journals or pricelists they should see.
  3. Save. Transfers follow the granted warehouses, payments offer only the granted journals, and only granted pricelists can be edited. Names can still appear in dropdowns.

Restrict temporary or external staff

  1. Create one rule and add all temporary or external users to it.
  2. Block the operations they should not perform and hide the menus, buttons and actions they do not need.
  3. When someone leaves, remove them from the rule. No groups need rebuilding.

Limits

  • Interface restrictions apply by default. Blocking create, write and unlink over RPC needs the optional server-side enforcement.
  • Settings administrators are never restricted. Rule Restriction Managers are restricted like other users.
  • It hides or allow-lists master data and never modifies or deletes it.
  • It cannot be installed on Odoo Online.

FAQ

Can I restrict delete rights for one user in Odoo without new groups?

Yes. With Rule Restriction you create a rule, select the user and the model, and block Delete. The user loses the delete option on that model while the standard groups stay as they are. One rule can also cover many users.

How do I limit an Odoo user to chosen warehouses or journals?

Create a rule for that user and use Grant resources for the warehouses, journals or pricelists they may use. Names can still appear in dropdowns, but transfers follow granted warehouses, payments offer only granted journals, and only granted pricelists can be edited. The Users Overview lists each user's grants.

Can I hide buttons and menus per user in Odoo?

Yes. Rule Restriction hides buttons, menus, fields, tabs, groups, statusbar values and actions for the users you select. The hiding happens in the interface and needs no changes to Odoo core.

Can an administrator lock themselves out with Rule Restriction?

No. Settings administrators are always exempt from every restriction. Rule Restriction Managers are not exempt, so they can test the rules they build.

Can a restricted user get around the rules through the API?

Interface restrictions apply by default. Turn on the optional server-side enforcement in Rule Restriction to also block create, write and unlink over RPC.

Which Odoo versions does Rule Restriction support?

Odoo 18, 19 and 20, Community and Enterprise, on-premise and on Odoo.sh. Odoo Online does not allow third-party apps, so it cannot be installed there. The price is one-time per Odoo major version.

Need it set up or adapted?

We configure our apps for your process, train your team and build the extra pieces you need.