From b6d7a50feb50c05616d2d7e27eec5919f20b6944 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E5=AE=87?= <9664676+pengyuthon@user.noreply.gitee.com> Date: Sat, 28 Feb 2026 19:11:55 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yuthon_hr_attendance/models/yuthon_vacation_reports.py | 2 ++ 1 file changed, 2 insertions(+) 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: