[FIX] anonymization: fix for obsolete models
bzr revid: olt@tinyerp.com-20121220112528-um4m3crn0enhcplj
This commit is contained in:
parent
7e1c86da6e
commit
36cd0b866e
|
@ -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'])
|
||||
|
|
Loading…
Reference in New Issue