Skip to content
Extraits de code Groupes Projets
Valider f71ee0ef rédigé par Benjamin - Le Filament's avatar Benjamin - Le Filament
Parcourir les fichiers

[UPD] check timesheet for holiday

parent a1f06b1f
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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 "
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter