From 102c1922bd108b6bd9814bd49fadc17d4f9b0637 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= Date: Sun, 3 Aug 2025 11:11:59 +0800 Subject: [PATCH] 1 --- yuthon_holiday/models/inherit_hr_leave.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yuthon_holiday/models/inherit_hr_leave.py b/yuthon_holiday/models/inherit_hr_leave.py index b0d00afd8..56449bd23 100644 --- a/yuthon_holiday/models/inherit_hr_leave.py +++ b/yuthon_holiday/models/inherit_hr_leave.py @@ -36,8 +36,9 @@ class HrLeave(models.Model): emp_data = leave_data[employee] and leave_data[employee][0][1]['virtual_excess_data'] if not previous_emp_data and not emp_data: continue - if previous_emp_data != emp_data and len(emp_data) >= len(previous_emp_data): - raise ValidationError("您的假期额度不足,无法申请该假期") + # 这里加一个假期额度的判断 + # if previous_emp_data != emp_data and len(emp_data) >= len(previous_emp_data): + # raise ValidationError("您的假期额度不足,无法申请该假期") def action_leave_wizard(self):