Base Rule Visibility Restriction
This module lets you add "Excluded Groups" for Record Rules (ir.rule), when getting the record rules for Groups (res.groups) anywhere, if the user has the group for which a certain rule that should be applying has this group as one of it's Excluded Groups, this record rule won't appply.
auto_awesome What this module does
AI-generated from the code · Odoo 16.0Adds an "Excluded Groups" field to record rules so administrators can make a rule stop applying for specific user groups, giving finer control over who a security rule affects.
This module extends Odoo's record rules (the access rules that decide which records each user can see or change) with a new field called "Excluded Groups".
- On the record rule form, a new "Excluded Groups" section appears where you can select one or more user groups.
- When Odoo collects the record rules that apply to a user, any rule that lists one of that user's groups as excluded is removed from the set of rules applied to that user.
- The exclusion is evaluated per user and per operation (read, write, create, unlink), because the rule lookup is done separately for each access mode.
- Only active rules that grant the relevant permission are considered, so inactive rules are unaffected.
The change touches the ir.rule model and its form view, and it interacts with res.groups through the new field. No new menus, reports, emails or scheduled actions are added. The feature is purely a security configuration helper: it lets you keep a broad rule in place while carving out exceptions for particular groups, instead of duplicating rules or restructuring groups.
Depends on
Required by other modules
Models and fields (1)
- ir.rule · extends an existing modelexcluded_group_ids (Excluded Groups)
Text generated by AI (DeepSeek) from reading the Odoo 16.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-03Confirmation status: 3 confirmed, 6 with no information of 9 versions.
Sources · Odoo 13.0
Confirmed on 2026-11-03 in branch 13.0 of OCA/server-ux.
terminal Installation and usage
OCA documentation · Odoo 16.0Usage
Source · Odoo 16.0To use this module, you need to:
- Activate the developer mode
- Go to Settings > Technical > Security > Record Rules.
- Search for the Record Rule and edit it.
- Update "Excluded groups" with the desired groups.
- Login with a user of that group, and the certaing Record Rule won't apply.
No verified information in OCA: Installation, Configuration.
Installation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.