diff --git a/models/hr_timesheet.py b/models/hr_timesheet.py index 4d4030543b637261a4a46a8d7748295d5d370f55..54ed9177807d1a24b7a678cea94495baee27ba3b 100644 --- a/models/hr_timesheet.py +++ b/models/hr_timesheet.py @@ -202,7 +202,7 @@ class ScopHrTimesheet(models.Model): ("resource_id", "=", False), ] ) - if line.date.weekday() in (5, 6) or holiday: + if not line.holiday_id and (line.date.weekday() in (5, 6) or holiday): raise ValidationError( _( "Vous ne pouvez imputer du temps sur un weekend "