!9375 添加功能

Merge pull request !9375 from 李鹏宇/dev_zhou
This commit is contained in:
李鹏宇
2026-03-06 11:40:21 +00:00
committed by Gitee
@@ -243,7 +243,7 @@ class YuthonVacationReports(models.Model):
('vacation_date', '=', last_month)
], limit=1)
if not last_month_report:
inherit_lines.unlink()
inherit_lines.sudo().unlink()
else:
last_remain = last_month_report.remain_missed_meals or 0.0
inherit_lines.write({