[MERGE] orm: pass the context around.

lp bug: https://launchpad.net/bugs/704696 fixed

bzr revid: vmt@openerp.com-20110512125239-b2s0etg1yrjoa970
This commit is contained in:
Vo Minh Thu 2011-05-12 14:52:39 +02:00
commit 6a3342acfb
1 changed files with 1 additions and 1 deletions

View File

@ -736,7 +736,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]