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()