OdooWiki OCA HUB

Base Export Anonymize

base_export_anonymize folder_open OCA/data-protection open_in_new
Uncategorised License: AGPL-3

Anonymize certain fields for a group of users when exporting them directly or via relational fields.

auto_awesome What this module does

AI-generated from the code · Odoo 18.0

Marks specific fields to be replaced with a masked value when users in the "Anonymize data in export" group export records, so sensitive data never leaves Odoo in spreadsheets.

This module lets administrators choose which fields should be hidden when data is exported. On any field definition screen (Settings > Technical > Database Structure > Fields), a new "Anonymize in export" checkbox appears; ticking it adds the field to the list of fields to anonymize.

A dedicated menu "Fields Export Anonymize" (under the Technical menu) shows all fields currently marked for anonymization in an editable list, where administrators can add or remove fields directly.

When a user who belongs to the hidden group "Anonymize data in export" exports records (for example from a list view), the values of the marked fields are replaced by a masked text. The mask is taken from the system parameter model.fields.export.anonymize.key, which by default is *********** and can be changed by an administrator. Users who are not in that group export the real values as usual.

The module works on all models because it extends the generic export mechanism, and it applies to direct fields as well as fields reached through relational paths. Only users in the special group are affected; access to the list of anonymized fields is read-only for regular users and fully manageable for ERP managers.

Depends on

base
Models and fields (2)
  • ir.model.fields · extends an existing modelanonymize_in_export
  • ir.model.fields.export.anonymize · new modelfield_id (Field)

Text generated by AI (DeepSeek) from reading the Odoo 18.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 18.0

Confirmed on 2026-11-03 in branch 18.0 of OCA/data-protection.

terminal Installation and usage

OCA documentation · Odoo 18.0
  • Go to "Settings/Technical/Database Structure/Fields Export Anonymize"
  • Add the filed to anonymize
  • Add users to "Technical Settings / Anonymize data in export" group
  • You can customize the displayed string when anonymizing from the system parameters.

With a user of "Technical Settings / Anonymize data in export" group, export the anonymized field.

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.