Skip to content

[14.0][ADD] base_anonymize #346

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: 14.0
Choose a base branch
from
Open

Conversation

hbrunn
Copy link
Member

@hbrunn hbrunn commented Mar 22, 2025

This module provides a flexible mechanism and default configuration for
anonymizing data in an Odoo database.

Use Cases / Context

This module was developed because the OCA internal tools workgroup needs
access to the OCA database, but shouldn't have access to the data of OCA
members.

It should be useful in any setting where external developers need access
to a database, or for setting up test instances.

Configuration

To configure this module, you need to:

  1. Go to Settings / Technical / Anonymization / Field Definitions
  2. Review fields to overwrite, every field can be overwritten by some
    method, and the overwritten records can be restricted by a domain

Usage

To use this module, you need to:

  1. Go to Settings / Technical / Anonymization / Run Anonymization
  2. Confirm you really mean it

The above is only for testing configurations, usually you would script
this in some export setting by installing the module on a clone,
possibly a custom module modifying the field configuration, and running
the code env['anonymize.wizard'].action_run() before you export your
file store and dump the database to wherever you need it.

!!CAUTION!! The default configuration overwrites the database secret
and sets all passwords to password - for your tests, you will want
to disable the field definitions for res.users and
ir.config_parameter, because you'll be logged out after the
anonymization run otherwise.

@hbrunn hbrunn force-pushed the 14.0-base_anonymize branch 2 times, most recently from 1e8df54 to 1eb950a Compare March 22, 2025 06:11
@hbrunn hbrunn force-pushed the 14.0-base_anonymize branch from 5b702de to 87bd917 Compare March 22, 2025 06:41
@legalsylvain
Copy link
Contributor

Fyi odoo/odoo#156944

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants