This commit is contained in:
李鹏宇
2025-08-03 11:11:59 +08:00
parent 94fc865bcf
commit 102c1922bd
+3 -2
View File
@@ -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):