summaryrefslogtreecommitdiff
path: root/addons/web/static/tests/fields
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2018-08-29 15:37:18 +0200
committerThibault Delavallée <tde@odoo.com>2018-08-31 14:19:23 +0200
commit0f3281e3b1dc943b81d79d2a8f82fca7b95b8186 (patch)
tree42d2c3f8de034045e9b57b18d6926f4c63cc171e /addons/web/static/tests/fields
parent0113d989a8ea6241c03466d099feaef8f0c7daa3 (diff)
[REF] hr_holidays: clean leave and allocation access rights
Purpose - clean access rights; - solve some access and security issues; Access specifications - an user - can see all leaves; - cannot see name field of leaves belonging to other user as it may contain private information that we don't want to share to other people than HR people; - can modify only its own not validated leaves (except writing on state to avoid bypassing validation); - can discuss on its leave requests; - an Officer - can see all leaves; - can validate "HR" single validation leaves from people if - he is the employee manager; - he is the department manager; - he is member of the same department; - target employee has no manager and no department manager; - can validate "Manager" single validation leaves from people if - he is the employee manager; - he is the department manager; - target employee has no manager and no department manager; - can first validate "Both" double validation leaves from people like "HR" single validation, moving the leaves to validate1 state; - cannot validate its own leaves; - a Manager - can do everything he wants In top of that, multi company rule are correctly added. In reporting model using in "summary" name field should also be stripped if you are not an HR officer and if it is not your own request. Concerning allocation requests: implement same rules except constraint on name field as it is less private and therefore can be seen. This commit is linked to task ID 1876795 and PR #26656.
Diffstat (limited to 'addons/web/static/tests/fields')
0 files changed, 0 insertions, 0 deletions