[IMP]hr_employee_stats_sheet:conciderate only valided and active leaves
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user