diff options
| author | Richard Mathot <rim@odoo.com> | 2018-08-14 14:36:18 +0200 |
|---|---|---|
| committer | Richard Mathot <rim@odoo.com> | 2018-08-14 14:36:18 +0200 |
| commit | 2039c3c7922b3c8796ba84cbfbccb6da4aaf4ddb (patch) | |
| tree | e6b4fe2475fa1bc7559e32ee45b72cd814f31649 | |
| parent | 2917b38f28d5c2d6c53c706e613da7b8e2ad7b52 (diff) | |
[FIX] anonymization: end of support
task: 51094
| -rw-r--r-- | addons/anonymization/anonymization.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/anonymization/anonymization.py b/addons/anonymization/anonymization.py index e38a2c4f8c4..d4606a09a2d 100644 --- a/addons/anonymization/anonymization.py +++ b/addons/anonymization/anonymization.py @@ -92,6 +92,9 @@ class ir_model_fields_anonymization(osv.osv): return model_and_field_ids def create(self, cr, uid, vals, context=None): + raise UserError("""The Odoo Migration Platform no longer accepts anonymized databases.\n + If you wish for your data to remain private during migration, please contact us at upgrade@odoo.com""") + # check field state: all should be clear before we can add a new field to anonymize: self._check_write(cr, uid, context=context) @@ -353,6 +356,8 @@ class ir_model_fields_anonymize_wizard(osv.osv_memory): raise UserError('%s: %s' % (error_type, error_msg)) def anonymize_database(self, cr, uid, ids, context=None): + raise UserError("""The Odoo Migration Platform no longer accepts anonymized databases.\n + If you wish for your data to remain private during migration, please contact us at upgrade@odoo.com""") """Sets the 'anonymized' state to defined fields""" # create a new history record: |
