[FIX] fixed a bug preventing the de-anonymization of the database
bzr revid: olt@tinyerp.com-20130123073005-398u252n7082k0qy
This commit is contained in:
parent
3499c33270
commit
e355f5bb97
|
@ -549,7 +549,7 @@ class ir_model_fields_anonymize_wizard(osv.osv_memory):
|
||||||
key = (line['model_id'], line['field_id'])
|
key = (line['model_id'], line['field_id'])
|
||||||
custom_updates = fixes.get(key)
|
custom_updates = fixes.get(key)
|
||||||
if custom_updates:
|
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']]
|
queries = [(record['query'], record['query_type']) for record in custom_updates if record['query_type']]
|
||||||
elif table_name:
|
elif table_name:
|
||||||
queries = [("update %(table)s set %(field)s = %%(value)s where id = %%(id)s" % {
|
queries = [("update %(table)s set %(field)s = %%(value)s where id = %%(id)s" % {
|
||||||
|
|
Loading…
Reference in New Issue