[FIX] call name_search method then pass context parameter in import_data method..

bzr revid: ysa@tinyerp.com-20110120054034-b8mdwsev5ax5c2cj
This commit is contained in:
YSA (Openerp)
2011-01-20 11:10:34 +05:30
parent f030d1219e
commit fcf7c478cc
+1 -1
View File
@@ -728,7 +728,7 @@ class orm_template(object):
id = ir_model_data[0]['res_id']
else:
obj_model = self.pool.get(model_name)
ids = obj_model.name_search(cr, uid, id, operator='=')
ids = obj_model.name_search(cr, uid, id, operator='=', context=context)
if not ids:
raise ValueError('No record found for %s' % (id,))
id = ids[0][0]