Skip to content

Commit

Permalink
[FIX] Change the target_version for anonymization.
Browse files Browse the repository at this point in the history
Fixed odoo#5476
  • Loading branch information
vba-odoo authored and Samus CTO committed Feb 26, 2015
1 parent 0c1b95d commit 10a1d44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/anonymization/anonymization.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ def reverse_anonymize_database(self, cr, uid, ids, context=None):
data = pickle.loads(base64.decodestring(wizard.file_import))

migration_fix_obj = self.pool.get('ir.model.fields.anonymization.migration.fix')
fix_ids = migration_fix_obj.search(cr, uid, [('target_version', '=', '7.0')])
fix_ids = migration_fix_obj.search(cr, uid, [('target_version', '=', '8.0')])
fixes = migration_fix_obj.read(cr, uid, fix_ids, ['model_name', 'field_name', 'query', 'query_type', 'sequence'])
fixes = group(fixes, ('model_name', 'field_name'))

Expand Down

0 comments on commit 10a1d44

Please sign in to comment.