Skip to content

Commit

Permalink
[IMP] project_timesheet_holidays: Improve error message
Browse files Browse the repository at this point in the history
closes odoo#45818

Related: odoo/enterprise#8602
Signed-off-by: Yannick Tivisse (yti) <[email protected]>
  • Loading branch information
tivisse committed Jun 23, 2020
1 parent dfdeb34 commit 721dda2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/project_timesheet_holidays/models/hr_holidays.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ def _check_timesheet_generate(self):
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):
Expand Down

0 comments on commit 721dda2

Please sign in to comment.