From 63d562de395face054ae4f55c576782a2795e6f4 Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Tue, 16 Nov 2010 17:00:25 +0200 Subject: [PATCH] ORM: fix bug at orm.copy_data(), would reset context[lang] Thanks to Dr. Gassauer that made me revise this code. bzr revid: p_christ@hol.gr-20101116150025-ssyiix1c72t04fbk --- bin/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index 496d569a29c..ef2ca8e171a 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -4096,7 +4096,7 @@ class orm(orm_template): else: default['state'] = self._defaults['state'] - context_wo_lang = context + context_wo_lang = context.copy() if 'lang' in context: del context_wo_lang['lang'] data = self.read(cr, uid, [id], context=context_wo_lang)[0]