[14.0][ADD] base_anonymize #346
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
method, and the overwritten records can be restricted by a domain
Usage
To use this module, you need to:
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 yourfile 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 wantto disable the field definitions for
res.users
andir.config_parameter
, because you'll be logged out after theanonymization run otherwise.