Database Anonymization

v 7.0 v 8.0 v 9.0 v 10.0 v 11.0 v 12.0 Third Party 708
Download for v 7.0
Odoo Online
On Premise
Odoo Apps Dependencies Social Network (mail)
Technical Name smile_anonymization
Versions 8.0 13.0 7.0 11.0 12.0 14.0 15.0 16.0 9.0 10.0
You bought this module and need support? Click here!

Supplier Advance Payments

License: AGPL-3 Smile-SA/odoo_addons

This module allows to anonymize automatically a database backup. To do that, you need to define data mask on model fields in Python code or via UI.

Table of contents


A data mask is a SQL statement, e.g.:
'partner_' || id::text WHERE is_company IS NOT TRUE

Add such a mask on the fields containing sensitive data:

  • in Python code, e.g.: fields.Char(data_mask='NULL')
  • in UI via the menu Settings > Technical > Database Structure > Fields

The lock icon allows not to overload data mask at each module update if you defined it in Python code and modify via UI.

Add this module in server_wide_modules list in your config file or in the option --load.

Go to database manager and backup the desired database. You will download a anonymized backup.


There are no requirements to use this module.

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 smashing it by providing a detailed and welcomed feedback.

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



  • Smile SA


  • Corentin Pouhet-Brunerie


This module is maintained by the Smile SA.

Since 1991 Smile has been a pioneer of technology and also the European expert in open source solutions.

Smile SA

This module is part of the odoo-addons project on GitHub.

You are welcome to contribute.

Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.