Skip to main content

Anonymize partner data for GDPR compliance

Project description

Odoo Community Association

Privacy Partner’s Right to be Forgotten

Beta License: LGPL-3 OCA/data-protection Translate me on Weblate Try me on Runboat

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.

Table of contents

Use Cases / Context

This module aims to help companies comply with the European Union General Data Protection Regulation (GDPR) by providing a mechanism to anonymize personal data in res.partner records.

Configuration

To permit a user to anonymize partner records:

  1. Go to SettingsUsers & CompaniesUsers

  2. Select the user you want to authorize

  3. 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.

Usage

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.

  1. Go to the Contacts App in Odoo.

  2. Select the partner record you want to anonymize.

  3. Go to ActionsAnonymize (GDPR).

  4. 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.

Changelog

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed feedback.

Do not contact contributors directly about support or help with technical issues.

Credits

Authors

  • Cetmix

Contributors

  • Cetmix:

    • Mikhail Lapin

    • Anatol Mikheev

Maintainers

This module is maintained by the OCA.

Odoo Community Association

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

This module is part of the OCA/data-protection project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo_addon_privacy_partner_to_be_forgotten-18.0.1.0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo_addon_privacy_partner_to_be_forgotten-18.0.1.0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 2fb9edbe9e3bda697be4f0c77d459eb325a2fe2ab7b639dbc9f170daf189fe99
MD5 2f2d5630bf548293c2bf2422710ad6ea
BLAKE2b-256 bc58519b53dc7b343a2eed4e43551f84f6d9c8a4f76e0e438b072cc9385ee938

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page