-
- Downloads
[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:Romain Libert (rli) <rli@odoo.com>
Loading
Please register or sign in to comment