[IMP] By pass a missing field in the translation
bzr revid: ach@tinyerp.com-20100511140111-87az887kvi6rl0uz
This commit is contained in:
parent
c6543844f4
commit
505b63fe5f
|
@ -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'])])
|
||||
|
||||
|
|
Loading…
Reference in New Issue