From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- .../security/hr_attendance_security.xml | 76 ++++++++++++++++++++++ addons/hr_attendance/security/ir.model.access.csv | 3 + 2 files changed, 79 insertions(+) create mode 100644 addons/hr_attendance/security/hr_attendance_security.xml create mode 100644 addons/hr_attendance/security/ir.model.access.csv (limited to 'addons/hr_attendance/security') diff --git a/addons/hr_attendance/security/hr_attendance_security.xml b/addons/hr_attendance/security/hr_attendance_security.xml new file mode 100644 index 00000000..a45dcd6a --- /dev/null +++ b/addons/hr_attendance/security/hr_attendance_security.xml @@ -0,0 +1,76 @@ + + + + Helps you manage the attendances. + 14 + + + + Kiosk Attendance + + The user will be able to open the kiosk mode and validate the employee PIN. + + + + + + + + + Manual Attendance + + The user will gain access to the human resources attendance menu, enabling him to manage his own attendance. + + + + Officer + + + + + + Administrator + + + + + + + + + + + Enable PIN use + + 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 + + [(1,'=',1)] + + + + + user: read and modify own attendance only + + [('employee_id.user_id','=',user.id)] + + + + + + + + + diff --git a/addons/hr_attendance/security/ir.model.access.csv b/addons/hr_attendance/security/ir.model.access.csv new file mode 100644 index 00000000..0c0cd4df --- /dev/null +++ b/addons/hr_attendance/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_hr_attendance_user,hr.attendance.user,model_hr_attendance,hr_attendance.group_hr_attendance_user,1,1,1,1 +access_hr_attendance_system_user,hr.attendance.system.user,model_hr_attendance,base.group_user,1,1,1,0 -- cgit v1.2.3