OdooWiki OCA HUB

Archive Security

base_archive_security folder_open OCA/server-ux open_in_new
Server tools License: AGPL-3

This module provide a new group called "Can archive records". This group is used to give the right to archive records (or not) to users.

auto_awesome What this module does

AI-generated from the code · Odoo 16.0

Adds a new user group called "Can archive records" that controls who is allowed to archive or unarchive records in Odoo. Users without this group no longer see the archive/unarchive action and are blocked if they try it.

This module introduces a security group named "Can archive records". Only users who belong to this group are allowed to archive or unarchive records anywhere in Odoo.

Where it appears: - In form views, the archive/unarchive action is hidden for users who are not in the group. - In list views, the same action is hidden for users who are not in the group. - The group itself appears in the standard user and group settings screens, so administrators can assign it.

Business rules and automatic behaviour: - If a user without the group tries to archive or unarchive a record (for example through an automated action or a direct call), Odoo raises an access error explaining that only members of the group can do it. - When the module is installed, all existing users are automatically added to the group, so nobody loses the ability to archive right away. Administrators can then remove users from the group as needed. - The system administrator and the superuser are always members of the group.

Areas touched: - The rule applies to every model in Odoo, because it is added to the base model that all other models inherit from. - The archive and unarchive buttons in the web interface are controlled for both form and list views.

Depends on

base
Models and fields (1)
  • base · extends an existing model

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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

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

Sources · Odoo 16.0

Confirmed on 2026-11-03 in branch 16.0 of OCA/server-ux.

terminal Installation and usage

OCA documentation · Odoo 16.0

For instance, all users have the right to archive records. If you want to restrict the ability to archive records to only certain users you can do so by removing the new group to the users.

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.