Files
odoo_source/addons
Lucas Lefèvre 86dfe52eab [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>
2019-08-07 12:40:41 +00:00
..
2019-08-07 10:28:33 +00:00
2019-07-17 14:13:12 +02:00
2019-07-17 14:13:12 +02:00
2019-08-02 18:34:18 +00:00
2019-07-17 14:13:12 +02:00
2019-08-07 10:28:33 +00:00
2019-08-07 10:28:33 +00:00
2019-08-02 16:47:58 +00:00
2019-08-02 16:47:58 +00:00
2019-08-01 12:40:01 +00:00
2019-07-17 14:13:12 +02:00
2019-07-17 14:13:12 +02:00
2019-08-07 10:28:33 +00:00
2019-08-07 10:28:33 +00:00
2019-08-07 10:28:33 +00:00
2019-08-07 10:28:33 +00:00
2019-08-02 16:47:58 +00:00
2019-07-31 13:20:38 +00:00
2019-07-17 14:13:12 +02:00
2019-07-17 14:13:12 +02:00
2019-08-07 10:28:33 +00:00
2019-08-02 16:47:58 +00:00
2019-08-07 10:28:33 +00:00
2019-08-07 10:28:33 +00:00
2019-08-07 10:28:33 +00:00
2019-08-07 10:28:33 +00:00
2019-07-30 11:46:30 +00:00