@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user