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): """