From c823af688c4e1a930af94f637a42fb83d87ac578 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:41:57 +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 | 2 +-
yuthon_hr_attendance/views/yuthon_holiday_statement.xml | 2 +-
2 files 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 6b8fbf2f9..ee1bc5c6c 100644
--- a/yuthon_hr_attendance/models/yuthon_holiday_statement.py
+++ b/yuthon_hr_attendance/models/yuthon_holiday_statement.py
@@ -47,7 +47,7 @@ class InheritHrLeave(models.Model):
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.leave_hours /8
+ rec.length_leave = rec.leave_hours /8
else:
rec.application_reason = ''
rec.caption = ''
diff --git a/yuthon_hr_attendance/views/yuthon_holiday_statement.xml b/yuthon_hr_attendance/views/yuthon_holiday_statement.xml
index e34bb8698..d6d09fc15 100644
--- a/yuthon_hr_attendance/views/yuthon_holiday_statement.xml
+++ b/yuthon_hr_attendance/views/yuthon_holiday_statement.xml
@@ -9,7 +9,7 @@
-
+