添加功能

This commit is contained in:
李鹏宇
2026-02-04 19:05:18 +08:00
parent 58c8b5129f
commit 4b794d3471
@@ -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):
"""