OdooWiki OCA HUB

Role Policy HR

role_policy_hr folder_open OCA/role-policy open_in_new
Tools License: AGPL-3

This module is recommended when using the role_policy app in combination with the Odoo standard addons hr module.

|

When this module is installed a change of enabled roles will update automatically the enabled role(s) via browser refresh.

auto_awesome What this module does

AI-generated from the code · Odoo 13.0

Adds HR-specific protection to the Role Policy app: the HR Officer group is treated as untouchable, and saving your own user profile refreshes the page so role changes take effect immediately.

This module is an automatic add-on that connects the Role Policy access-control app with Odoo's standard Employees (HR) app. It does not add any new menu or screen of its own.

What it changes:

  • It marks the HR Officer group (hr.group_hr_user) as a protected group in the Role Policy rules. This means Role Policy will not let that group be removed or altered through its role-management logic, because employee records contain sensitive fields that only HR Officers may see.
  • When a user saves their own profile (the "My Profile" form on res.users), the browser page reloads automatically. This makes any change of enabled roles take effect right away, without the user having to log out and back in.

Where it appears: there is no dedicated menu; the behaviour is applied inside the existing Role Policy screens and the standard user profile form. The module is installed automatically when both Employees and Role Policy are present.

It touches the core base model (to extend the list of protected groups) and the user profile form behaviour in the web client. No reports, emails or scheduled jobs are added.

Depends on

Required by other modules

Text generated by AI (DeepSeek) from reading the Odoo 13.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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 1 confirmed, 8 with no information of 9 versions.

Sources · Odoo 13.0

Confirmed on 2026-11-03 in branch 13.0 of OCA/role-policy.

terminal Installation and usage

No verified information

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.

info

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.