[FIX] fixed a bug preventing the de-anonymization of the database

bzr revid: olt@tinyerp.com-20130123073005-398u252n7082k0qy
This commit is contained in:
olt@tinyerp.com 2013-01-23 08:30:05 +01:00
parent 3499c33270
commit e355f5bb97
1 changed files with 1 additions and 1 deletions

View File

@ -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" % {