OdooWiki OCA HUB

Privacy Partner's Right to be Forgotten

privacy_partner_to_be_forgotten folder_open OCA/data-protection open_in_new
Data Protection License: LGPL-3

The module allows anonymizing contacts that represent natural persons (i.e., individuals) when they are no longer needed or when a data erasure request is received.

This module provides a method to anonymize all personally identifiable information (PII) from a res.partner record:

  • Name (e.g., replaced with initials or a generic label) for individual contacts
  • Email address
  • Phone numbers
  • Street and address fields
  • Tax ID
  • Citizen Identification
  • Job position and title
  • Internal Notes
  • Attached images (e.g., avatar)

The anonymization preserves the partner's link to its parent company if applicable (e.g., for a B2B contact) but ensures that the individual is no longer identifiable through the remaining data or relationships.

Additionally, the module removes all chatter messages (mail.message) and attachments associated with the partner record, as these may contain personal information, such as communication history, internal notes, or file uploads. This ensures complete anonymization and supports full GDPR compliance.

If the partner is linked to one or more res.users records (e.g., as a portal user or employee), the module will anonymize these user records:

  • The user login and email are replaced with anonymized values, and the user is archived.

A log note is added to the partner record chatter to indicate the anonymization event, supporting traceability.

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets authorized users permanently anonymize contacts (and their linked user accounts, messages and attachments) to comply with GDPR erasure requests. The action is available from the Contacts list and form views and cannot be undone.

This module adds a GDPR-style "right to be forgotten" action on contacts. From the Contacts app, an authorized user can select one or more contacts and run the "Anonymize (GDPR)" action, which opens a confirmation wizard listing the contacts that will be processed.

When confirmed, the module: - Replaces an individual's name with their initials plus "Anonymized" and generates a placeholder email such as initials, date and record id at anonymized.oca. - Clears phone, street, city, state, zip, country, job position, tax ID, reference, internal notes, website and all stored images. - For companies, only renames the record with an "Anonymized" suffix. - Deactivates the contact and any linked user account, clearing the user's login, email and signature. - Deletes the contact's chatter messages and attachments, including messages in discussion channels where the contact is a member. - Posts a note in the chatter recording the anonymization date and the user who performed it.

Access is restricted to members of the "Administrator" group created by the module, and the wizard refuses to run without that permission. The operation is irreversible.

Depends on

contacts
Models and fields (2)
  • res.partner · extends an existing model
  • partner.anonymize.wizard · new modelpartner_ids

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: 3 confirmed, 6 with no information of 9 versions.

Sources · Odoo 19.0

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

terminal Installation and usage

OCA documentation · Odoo 19.0

To permit a user to anonymize partner records:

  • Go to Settings → Users & Companies → Users
  • Select the user you want to authorize
  • In the Administration group, enable the checkbox "Anonymize Contacts"

This will allow the user to access and execute the anonymization functionality provided by the module.

To anonymize a partner record:

NOTE: Make sure the user has permission to anonymize partner records. Please check the Configuration file for details on how to grant permission.

  • Go to the Contacts App in Odoo.
  • Select the partner record you want to anonymize.
  • Go to Actions → Anonymize (GDPR).
  • A confirmation wizard will appear. Press the "Confirm" button to proceed.

Once you confirm, Odoo will anonymize the partner's record and all related child records, including:

  • Chatter messages and attachments
  • Linked res.users (user) records, if applicable

Important:

  • The anonymization operation cannot be undone.
  • Please be aware that once the data is anonymized, it cannot be restored, so proceed carefully.
  • You carry full responsibility for using the module's features, in line with GDPR compliance.

No verified information in OCA: Installation.

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.