[IMP]hr_employee_stats_sheet:conciderate only valided and active leaves

This commit is contained in:
2026-03-24 09:57:16 +01:00
parent 7803d476d9
commit b65b6431b6
3 changed files with 11 additions and 4 deletions

View File

@@ -143,6 +143,8 @@ class HrEmployeeStats(models.Model):
("holiday_status_id", "!=", self._get_holiday_status_id()),
("request_date_from", "<=", self.date),
("request_date_to", ">=", self.date),
("state", '=', 'validate'),
("active", '=', True),
],
)
if leave_ids: