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