summaryrefslogtreecommitdiff
path: root/addons/web/static/src
diff options
context:
space:
mode:
authorLucas Lefèvre <lul@odoo.com>2019-08-07 08:51:19 +0000
committerLucas Lefèvre <lul@odoo.com>2019-08-07 12:40:41 +0000
commit86dfe52eab579bb7fa2ec12e0bb628e1bd93d8c1 (patch)
tree032e3fb362fb90c3df0fdea3929990b20f714388 /addons/web/static/src
parent9419d171a84833efbcd57e4678e2609e10b90b67 (diff)
[FIX] hr: Allow user to see fields in profile
Currently, a simple user no longer see fields protected by groups in his profile. When retreiving the view arch, `sudo()` is used to bypass the group protection. But since commit 1e6c3be, `.sudo()` no longer changes the user. Hence, groups are still checked for the simple user. To fix the problem, the view arch should be retrieved with a user with all groups (SUPERUSER). This assumes that SUPERUSER has effectively all groups. closes odoo/odoo#35486 Signed-off-by: Romain Libert (rli) <rli@odoo.com>
Diffstat (limited to 'addons/web/static/src')
0 files changed, 0 insertions, 0 deletions