diff options
| -rw-r--r-- | addons/portal/controllers/portal.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/portal/controllers/portal.py b/addons/portal/controllers/portal.py index 548b72ef8e4..be3a6eabf34 100644 --- a/addons/portal/controllers/portal.py +++ b/addons/portal/controllers/portal.py @@ -405,7 +405,7 @@ class CustomerPortal(Controller): if report_type not in ('html', 'pdf', 'text'): raise UserError(_("Invalid report type: %s", report_type)) - report_sudo = request.env.ref(report_ref).sudo() + report_sudo = request.env.ref(report_ref).with_user(SUPERUSER_ID) if not isinstance(report_sudo, type(request.env['ir.actions.report'])): raise UserError(_("%s is not the reference of a report", report_ref)) |
