From 53de93848833457470044ccaf731929eb59ed7a8 Mon Sep 17 00:00:00 2001 From: pengyuthon Date: Tue, 10 Feb 2026 14:41:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E5=8B=A4=E8=AF=A6=E6=83=85=E6=8C=89?= =?UTF-8?q?=E9=92=AE=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_attendance/models/hr_attendance.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 = {