From 721dda236109c1a8d002207c157bfef3eb41b2bb Mon Sep 17 00:00:00 2001 From: Yannick Tivisse Date: Tue, 23 Jun 2020 09:20:32 +0000 Subject: [PATCH] [IMP] project_timesheet_holidays: Improve error message closes odoo/odoo#45818 Related: odoo/enterprise#8602 Signed-off-by: Yannick Tivisse (yti) --- addons/project_timesheet_holidays/models/hr_holidays.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/project_timesheet_holidays/models/hr_holidays.py b/addons/project_timesheet_holidays/models/hr_holidays.py index 4abb2e866b5..d7128f4234f 100644 --- a/addons/project_timesheet_holidays/models/hr_holidays.py +++ b/addons/project_timesheet_holidays/models/hr_holidays.py @@ -48,8 +48,8 @@ class HolidaysType(models.Model): if holiday_status.timesheet_generate: if not holiday_status.timesheet_project_id or not holiday_status.timesheet_task_id: raise ValidationError(_("Both the internal project and task are required to " - "generate a timesheet for the time off. If you don't want a timesheet, you should " - "leave the internal project and task empty.")) + "generate a timesheet for the time off %s. If you don't want a timesheet, you should " + "leave the internal project and task empty.") % (holiday_status.name)) class Holidays(models.Model):