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
This commit is contained in:
parent
329bfb0d18
commit
63d562de39
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue