1
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user