Missing context in browse call for res.user in report

This commit is contained in:
Cédric Krier committed 2009-09-15 23:02:27 +02:00
1 parent d7a7cd4eee
commit de860e50ce
1 file changed
+1 -1
+1 -1
View File
@@ -124,7 +124,7 @@ class Report(object):
localcontext = {}
localcontext['datas'] = datas
localcontext['user'] = self.pool.get('res.user').\
browse(cursor, user, user)
browse(cursor, user, user, context=context)
localcontext['formatLang'] = lambda *args, **kargs: \
self.format_lang(*((cursor, user) + args), **kargs)
localcontext['decodestring'] = decodestring