From 4b794d34710d16a55bb7b91db0bc91f874ea6000 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: Wed, 4 Feb 2026 19:05:18 +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 --- .../models/yuthon_vacation_reports.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/yuthon_hr_attendance/models/yuthon_vacation_reports.py b/yuthon_hr_attendance/models/yuthon_vacation_reports.py index accc3c96c..0caea3b95 100644 --- a/yuthon_hr_attendance/models/yuthon_vacation_reports.py +++ b/yuthon_hr_attendance/models/yuthon_vacation_reports.py @@ -169,6 +169,18 @@ class YuthonVacationReports(models.Model): rec.year_workday += workday_overtime_add rec.year_holiday += holidays_overtime_add + if rec.working_overtime > 0: + working_overtime_lines = rec.overtime_ids.filtered( + lambda o: not o.workflow_record_id and o.text == '上月额度继承' + ) + working_overtime_lines.workday = rec.working_overtime * 8 + + if rec.leave > 0: + leave_lines = rec.leave_ids.filtered( + lambda o: not o.workflow_record_id and o.text == '上月额度继承' + ) + leave_lines.update_lines = rec.leave * 8 + def update_vacation(self): """