From 270495a23bf95807198bdea34c26eab923728b87 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, 7 Apr 2026 15:45:08 +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/yuthon_vacation_reports.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yuthon_hr_attendance/models/yuthon_vacation_reports.py b/yuthon_hr_attendance/models/yuthon_vacation_reports.py index a1ad30325..c1978ebb7 100644 --- a/yuthon_hr_attendance/models/yuthon_vacation_reports.py +++ b/yuthon_hr_attendance/models/yuthon_vacation_reports.py @@ -402,7 +402,7 @@ class YuthonVacationReports(models.Model): # 计算年假新增总天数 add_leave_lines = rec.leave_ids.filtered( lambda o: o.text != '上月额度继承' and o.update_type == 'add' and o.is_void != True) - dynamic_remainder_year = sum((line.update_lines or 0) for line in add_leave_lines) + dynamic_remainder_year = sum((line.update_lines or 0) for line in add_leave_lines) / 8 rec.dynamic_remainder_year += dynamic_remainder_year rec._compute_leave()