From 7cc85b90b4ab7ba0c8934165c799f8c39458f6a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Wed, 10 Sep 2025 17:58:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_attendance/models/hr_attendance_detail_wechat.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py index e8c50ff6d..4516b4ca0 100644 --- a/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py +++ b/yuthon_hr_attendance/models/hr_attendance_detail_wechat.py @@ -111,7 +111,8 @@ class HrAttendanceDetail(models.Model): employee_list.append(resource_id.employee_id.id) if not record.employee_id.id in employee_list: start_dt = slot_start_dt.date() - days = self.env['yuthon.vacation.reports']._create_leave_record(record.employee_id, start_dt, slot_end_dt) + end_dt = slot_end_dt.date() + days = self.env['yuthon.vacation.reports']._create_leave_record(record.employee_id, start_dt, end_dt) else: monthly_slots = self.env['planning.slot'].search([ ('employee_id', '=', record.employee_id.id),