From 2bb32450ab1f0606cc2c5a592d2d2fb43ff42b42 Mon Sep 17 00:00:00 2001 From: "Christophe Chauvet (Syleam)" <> Date: Thu, 16 Jul 2009 18:20:41 +0530 Subject: [PATCH] [FIX] Import : context provided for language translation lp bug: https://launchpad.net/bugs/394876 fixed bzr revid: jvo@tinyerp.com-20090716125041-72iaz586utt2j1mq --- bin/osv/orm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index b4be8a4021b..ca5dbf471eb 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -685,7 +685,7 @@ class orm_template(object): if line[i]: relation = fields_def[field[len(prefix)]]['relation'] res2 = self.pool.get(relation).name_search(cr, uid, - line[i], [], operator='=') + line[i], [], operator='=', context=context) res = (res2 and res2[0][0]) or False if not res: warning += ('Relation not found: ' + line[i] + \ @@ -699,7 +699,7 @@ class orm_template(object): relation = fields_def[field[len(prefix)]]['relation'] for word in line[i].split(config.get('csv_internal_sep')): res2 = self.pool.get(relation).name_search(cr, - uid, word, [], operator='=') + uid, word, [], operator='=', context=context) res3 = (res2 and res2[0][0]) or False if not res3: warning += ('Relation not found: ' + \