[IMP] By pass a missing field in the translation

bzr revid: ach@tinyerp.com-20100511140111-87az887kvi6rl0uz
This commit is contained in:
Anup (OpenERP) 2010-05-11 19:31:11 +05:30
parent c6543844f4
commit 505b63fe5f
1 changed files with 4 additions and 4 deletions

View File

@ -767,7 +767,7 @@ def trans_load_data(db_name, fileobj, fileformat, lang, strict=False, lang_name=
# the same source
obj = pool.get(model)
if obj:
if not field in obj._columns:
if field not in obj.fields_get_keys(cr, uid):
continue
ids = obj.search(cr, uid, [(field, '=', dic['src'])])