[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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user