diff --git a/yuthon_hr_attendance/models/yuthon_vacation_reports.py b/yuthon_hr_attendance/models/yuthon_vacation_reports.py index bd78657ee..f7d74b9ab 100644 --- a/yuthon_hr_attendance/models/yuthon_vacation_reports.py +++ b/yuthon_hr_attendance/models/yuthon_vacation_reports.py @@ -192,6 +192,8 @@ class YuthonVacationReports(models.Model): rec.update_line() def update_line(self): + if self.vacation_date == fields.Date.from_string('2026-01-01'): + return self.manage_reject() # ========== 第一步:处理年假逻辑 ========== for rec in self: