summaryrefslogtreecommitdiff
path: root/addons/base_setup
diff options
context:
space:
mode:
authorLucas Perais (lpe) <lpe@odoo.com>2018-02-02 15:01:47 +0100
committerLucas Perais (lpe) <lpe@odoo.com>2018-02-02 16:08:00 +0100
commit63c39c74605a9458de4e7a8a2a2f3821e55843ba (patch)
tree1dd22217f078653321286f83b20f3fbf28730819 /addons/base_setup
parent3e91cbf47d62be945583d79ec9b7fd23e424a28f (diff)
[FIX] hr: soft-prevent read of employees forbidden field
Before this commit, when having a simple employee (group employee) accessing the form view of hr.employee, there was traceback because the field is_address_home_a_company was not in the view This is because of commit 2d777d5 which restricted this field to the group_hr_user (Officer) in Python When the view itself is not group-restricted The JS loads everything from the view but puts invisible=1 on sections that have a group The field, in our case, is forbidden before that and is not loaded, whereas the domain in which it is used is loaded After this commit, the view loads correctly, while avoiding leaks as intended OPW 813721
Diffstat (limited to 'addons/base_setup')
0 files changed, 0 insertions, 0 deletions