[FIX] anonymization: don't execute query on non existing tables
bzr revid: olt@tinyerp.com-20121221102534-e5hc07d2qq8qqith
This commit is contained in:
parent
118316430a
commit
05debf9519
|
@ -551,7 +551,7 @@ class ir_model_fields_anonymize_wizard(osv.osv_memory):
|
|||
if custom_updates:
|
||||
custom_updates.sort(itemgetter('sequence'))
|
||||
queries = [(record['query'], record['query_type']) for record in custom_updates if record['query_type']]
|
||||
else:
|
||||
elif table_name:
|
||||
queries = [("update %(table)s set %(field)s = %%(value)s where id = %%(id)s" % {
|
||||
'table': table_name,
|
||||
'field': line['field_id'],
|
||||
|
|
Loading…
Reference in New Issue