diff options
| author | olt@tinyerp.com <> | 2013-01-23 08:30:05 +0100 |
|---|---|---|
| committer | olt@tinyerp.com <> | 2013-01-23 08:30:05 +0100 |
| commit | e355f5bb979b4d26d112e762363189fc9b343d78 (patch) | |
| tree | 33288a7ccc64e5041fd63089bc3aa15b7a067a38 /addons/anonymization | |
| parent | 3499c3327088e7a9d9e5ee037a08853a4d428ef5 (diff) | |
[FIX] fixed a bug preventing the de-anonymization of the database
bzr revid: olt@tinyerp.com-20130123073005-398u252n7082k0qy
Diffstat (limited to 'addons/anonymization')
| -rw-r--r-- | addons/anonymization/anonymization.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/anonymization/anonymization.py b/addons/anonymization/anonymization.py index d21b57a901e..de46e2e8d03 100644 --- a/addons/anonymization/anonymization.py +++ b/addons/anonymization/anonymization.py @@ -549,7 +549,7 @@ class ir_model_fields_anonymize_wizard(osv.osv_memory): key = (line['model_id'], line['field_id']) custom_updates = fixes.get(key) if custom_updates: - custom_updates.sort(itemgetter('sequence')) + custom_updates.sort(key=itemgetter('sequence')) queries = [(record['query'], record['query_type']) for record in custom_updates if record['query_type']] elif table_name: queries = [("update %(table)s set %(field)s = %%(value)s where id = %%(id)s" % { |
