[FIX] anonymization: don't execute query on non existing tables

bzr revid: olt@tinyerp.com-20121221102534-e5hc07d2qq8qqith
This commit is contained in:
olt@tinyerp.com 2012-12-21 11:25:34 +01:00
parent 118316430a
commit 05debf9519
1 changed files with 1 additions and 1 deletions

View File

@ -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'],