[WIP]hr_employee_stats_sheet:fix public holidays

This commit is contained in:
2025-11-04 16:00:56 +01:00
parent ee1e1cbe65
commit 20f04d710c
3 changed files with 134 additions and 67 deletions

View File

@@ -110,8 +110,8 @@ class HrTimesheetSheet(models.Model):
("state", "in", ("open", "close")),
("date_start", "<=", self.date_end),
"|",
("date_end", "=", False), # pas de date de fin OU
("date_end", ">=", self.date_start), # date de fin après le début
("date_end", "=", False), # no end date OR
("date_end", ">=", self.date_start), # end date after start
],
)
return contracts