From 429335c9b764fc72c8cc920b239eea95cc898d84 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: Tue, 3 Feb 2026 16:35:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=B7=E5=81=87=E7=BB=93=E6=9D=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_attendance/models/yuthon_holiday_statement.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yuthon_hr_attendance/models/yuthon_holiday_statement.py b/yuthon_hr_attendance/models/yuthon_holiday_statement.py index 74401256a..6b8fbf2f9 100644 --- a/yuthon_hr_attendance/models/yuthon_holiday_statement.py +++ b/yuthon_hr_attendance/models/yuthon_holiday_statement.py @@ -43,11 +43,11 @@ class InheritHrLeave(models.Model): if rec.batch_id: rec.application_reason = rec.batch_id.text rec.caption = rec.batch_id.name - rec.length_leave = rec.batch_id.days + rec.length_leave = rec.number_of_days_display elif rec.hour_batch_id: rec.application_reason = rec.hour_batch_id.text rec.caption = rec.hour_batch_id.name - rec.length_leave = rec.hour_batch_id.days + rec.length_leave = rec.hour_batch_id.leave_hours /8 else: rec.application_reason = '' rec.caption = ''