OdooWiki OCA HUB

Base User Role History

base_user_role_history folder_open OCA/server-backend open_in_new
Uncategorised License: AGPL-3

This addon provides history for roles modifications on users. Each time a role is added/updated/unlinked on a user, a new role history line is created mentioning what changes were made and who made them. These informations are directly accessible from users via a smart button.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

This module keeps a history of every change made to the roles assigned to users. From a user's form you can open a smart button showing who changed which role, when, and what the old and new values were.

Every time a role line on a user is added, edited or deleted, the module automatically records a history entry. The entry stores the action (Add, Delete or Edit), the user concerned, the old and new role, the old and new start and end dates, and whether the role was active before and after the change. The person who made the change and the date/time are also kept.

On the user form (res.users) a new smart button labelled "Last update of roles" appears in the button box. It shows the date of the most recent role change and opens a list of all role history entries for that user. The history list uses colours: additions are shown in green and deletions in red. The list and form are read-only, so history cannot be altered from the interface.

A search view lets you filter by old role or new role and group entries by old role, new role or action. The history records are readable by all internal users but cannot be created, modified or deleted manually. The module depends on mail and base_user_role and extends the models res.users and res.users.role.line.

Depends on

Models and fields (3)
  • res.users · extends an existing modellast_role_line_modification
  • res.users.role.line · extends an existing model
  • base.user.role.line.history · new modeluser_id (User), new_date_to (New end date), new_role_id (New role), old_date_to (Old end date), old_role_id (Old role), new_date_from (New start date), old_date_from (Old start date), new_is_enabled (Active after edit), old_is_enabled (Active before edit), performed_action (Action)

Text generated by AI (DeepSeek) from reading the Odoo 19.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: 6 confirmed, 3 with no information of 9 versions.

Sources · Odoo 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/server-backend.

terminal Installation and usage

OCA documentation · Odoo 19.0

Changes on user roles are easily accessible via a button on user form view.

No verified information in OCA: Installation, Configuration.

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.