From 686795f66459c15379fcaa3ccc105e7baddf16d6 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: Mon, 18 May 2026 09:55:53 +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_holiday/models/inherit_hr_leave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_holiday/models/inherit_hr_leave.py b/yuthon_holiday/models/inherit_hr_leave.py index a4ce7b3c9..3d8105f40 100644 --- a/yuthon_holiday/models/inherit_hr_leave.py +++ b/yuthon_holiday/models/inherit_hr_leave.py @@ -868,7 +868,7 @@ class HolidaysRequestBatch(models.Model): """ 封装创建加班结转明细的逻辑 """ - carry_forward_date = (self.log_ids[-1].lase_click_date).date() + carry_forward_date = (self.log_ids[-2].lase_click_date).date() self.env['overtime.carryover'].create({ 'leave_id': self.id, 'over_line_id': over_line.id,