Skip to content
Snippets Groups Projects
Commit 86dfe52e authored by Lucas Lefèvre's avatar Lucas Lefèvre
Browse files

[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 1e6c3bec, `.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: default avatarRomain Libert (rli) <rli@odoo.com>
parent 9419d171
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