[FIX] anonymization: fix for obsolete models

bzr revid: olt@tinyerp.com-20121220112528-um4m3crn0enhcplj
This commit is contained in:
olt@tinyerp.com 2012-12-20 12:25:28 +01:00
parent 7e1c86da6e
commit 36cd0b866e
1 changed files with 1 additions and 1 deletions

View File

@ -543,7 +543,7 @@ class ir_model_fields_anonymize_wizard(osv.osv_memory):
fixes = group(fixes, ('model_name', 'field_name'))
for line in data:
table_name = self.pool.get(line['model_id'])._table
table_name = self.pool.get(line['model_id'])._table if self.pool.get(line['model_id']) else None
# check if custom sql exists:
key = (line['model_id'], line['field_id'])