[WIP]hr_employee_stats_sheet:fix public holidays
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user