Skip to content
Snippets Groups Projects
Commit 3891ab34 authored by Yannick Tivisse's avatar Yannick Tivisse
Browse files

[FIX] web: Fix access right issues on external layout prining


Purpose
=======

If the user doesn't have access to ir.ui.view (aka no admin or
website access rights), printing a report with a configured
external layout will lead to a traceback, as it's forbidden
for the use to read on the field "key" on the related ir.ui.view.

As we only want to retrieve the view key, this is safe to use
sudo at that point.

closes odoo/odoo#80510

Taskid: 2701251
Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent 17f0ca0d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment