@@ -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):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user