From 07887ffbaf0b97b443526d857a807a6f16ec447d Mon Sep 17 00:00:00 2001 From: Victor Laskurain Date: Thu, 30 Apr 2026 09:03:42 +0200 Subject: [PATCH] [FIX] hr_timesheet_sheet_attendance: allow checking out to plain attendance users The previous version, implemented around _attendance_action_change, allowed checking in but not checking out, which raised a permission denied error. Using attendance_manual takes care of the permission issues and also avoid depending on a private function. --- hr_timesheet_sheet_attendance/models/hr_timesheet_sheet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hr_timesheet_sheet_attendance/models/hr_timesheet_sheet.py b/hr_timesheet_sheet_attendance/models/hr_timesheet_sheet.py index 34c3d8be50..22ef804e98 100644 --- a/hr_timesheet_sheet_attendance/models/hr_timesheet_sheet.py +++ b/hr_timesheet_sheet_attendance/models/hr_timesheet_sheet.py @@ -65,7 +65,7 @@ def attendance_action_change(self): perform Check In/Check Out action Returns last attendance record""" - return self.employee_id._attendance_action_change() + return self.employee_id.attendance_manual(None) def action_timesheet_confirm(self): self.check_employee_attendance_state()