From 23b0f38245eced2d40d06e5c3ae2ad5a92d6e396 Mon Sep 17 00:00:00 2001 From: Jorge Pinna Puissant Date: Wed, 3 Jun 2020 10:29:09 +0000 Subject: [PATCH] [FIX] hr_attendance: multi-company rule Before this commit, a user with attendance administrator rights can see the attendances of all users of all companies and not only the companies he is allowed. Now, the administrator will only see the attendances of the users of the companies he is allowed. opw-2263577 closes odoo/odoo#52355 X-original-commit: 0e8f86795db74fe21daa8776243415291371fdf6 Signed-off-by: Nicolas Lempereur (nle) Signed-off-by: Jorge Pinna Puissant (jpp) --- addons/hr_attendance/security/hr_attendance_security.xml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/addons/hr_attendance/security/hr_attendance_security.xml b/addons/hr_attendance/security/hr_attendance_security.xml index 013b6069ac7..f23e6ce9271 100644 --- a/addons/hr_attendance/security/hr_attendance_security.xml +++ b/addons/hr_attendance/security/hr_attendance_security.xml @@ -45,7 +45,14 @@ The user will have to enter his PIN to check in and out manually at the company screen. - + + + + Employee multi company rule + + + ['|',('employee_id.company_id','=',False),('employee_id.company_id', 'in', company_ids)] + attendance officer: full access