summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorYannick Tivisse <yti@odoo.com>2020-06-23 09:20:32 +0000
committerYannick Tivisse <yti@odoo.com>2020-06-23 09:20:32 +0000
commit721dda236109c1a8d002207c157bfef3eb41b2bb (patch)
treed05a3528c573a765554c7846562a18cc68ce4a37 /addons
parentdfdeb34a89aabf13d783dbdb1dd38a0abf5eef29 (diff)
[IMP] project_timesheet_holidays: Improve error message
closes odoo/odoo#45818 Related: odoo/enterprise#8602 Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/project_timesheet_holidays/models/hr_holidays.py4
1 files 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):