From 1cc2cc42728c1ac664b404a23d01378fa08b47d8 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: Thu, 26 Feb 2026 20:51:57 +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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yuthon_hr_attendance/models/yuthon_vacation_reports.py b/yuthon_hr_attendance/models/yuthon_vacation_reports.py index 65b2d379e..43b97de6b 100644 --- a/yuthon_hr_attendance/models/yuthon_vacation_reports.py +++ b/yuthon_hr_attendance/models/yuthon_vacation_reports.py @@ -195,8 +195,6 @@ class YuthonVacationReports(models.Model): self.manage_reject() # ========== 第一步:处理年假逻辑 ========== for rec in self: - rec._compute_leave() - rec._compute_working_overtime() valid_leave_lines = rec.leave_ids.filtered( lambda l: l.workflow_record_id and l.update_type == 'reduce' and l.is_void != True ) @@ -265,6 +263,9 @@ class YuthonVacationReports(models.Model): ) leave_lines.update_lines = rec.leave * 8 + rec._compute_leave() + rec._compute_working_overtime() + def update_vacation(self): """