diff --git a/yuthon_hr_attendance/models/hr_attendance.py b/yuthon_hr_attendance/models/hr_attendance.py index f38abf7d5..bc1111f26 100644 --- a/yuthon_hr_attendance/models/hr_attendance.py +++ b/yuthon_hr_attendance/models/hr_attendance.py @@ -671,12 +671,12 @@ class HrAttendance(models.Model): ('checkin_time', '>=', start_datetime), ('checkin_time', '<', check_out_end - timedelta(hours=8)) ] - if '行政' in template.display_name: - domain = [ - ('employee_id', '=', employee_id.id), - ('checkin_time', '>=', current_date), - ('checkin_time', '<', next_day) - ] + # if '行政' in template.display_name: + # domain = [ + # ('employee_id', '=', employee_id.id), + # ('checkin_time', '>=', current_date), + # ('checkin_time', '<', next_day) + # ] attendance_records = self.env['hr.attendance.detail'].search(domain) if attendance_records: action = {