!9378 添加功能

Merge pull request !9378 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2026-03-06 11:43:41 +00:00
committed by Gitee
@@ -242,10 +242,10 @@ class YuthonVacationReports(models.Model):
('employee_id', '=', rec.employee_id.id),
('vacation_date', '=', last_month)
], limit=1)
if not last_month_report:
last_remain = last_month_report.remain_missed_meals
if not last_remain:
inherit_lines.sudo().unlink()
else:
last_remain = last_month_report.remain_missed_meals or 0.0
inherit_lines.write({
'update_lines': last_remain,
})