[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:
+1
-1
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user