[FIX] report: fetch user with context

When rendering QWeb reports, the user is being browsed without the
context, which means that any translatable field being accessed
through it will be in English.
This commit is contained in:
app
2015-12-29 11:22:12 +01:00
committed by Simon Lejeune
parent 97a61f9e76
commit ae9cd5a221
+1 -1
View File
@@ -88,7 +88,7 @@ class Report(osv.Model):
view_obj = self.pool['ir.ui.view']
user = self.pool['res.users'].browse(cr, uid, uid)
user = self.pool['res.users'].browse(cr, uid, uid, context=context)
website = None
if request and hasattr(request, 'website'):
if request.website is not None: