diff options
| author | app <github@andreparames.com> | 2015-12-17 12:11:27 +0000 |
|---|---|---|
| committer | Simon Lejeune <sle@openerp.com> | 2015-12-29 11:22:12 +0100 |
| commit | ae9cd5a221981b772b908ac6bbd5a41d5fb18e5b (patch) | |
| tree | 50349e6f7f298a60c1b78e9d22cd44aa41e7a471 /addons | |
| parent | 97a61f9e763a15445d9480c8d0795af4aefe4a4e (diff) | |
[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.
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/report/models/report.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/report/models/report.py b/addons/report/models/report.py index 6005370d399..98e90a550c5 100644 --- a/addons/report/models/report.py +++ b/addons/report/models/report.py @@ -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: |
