FIX CALC attendances HOLDAY

This commit is contained in:
odex 2024-08-12 16:08:48 +03:00
parent 351da89130
commit 6980ab4ac0
1 changed files with 1 additions and 1 deletions

View File

@ -654,7 +654,7 @@ class HrAttendanceTransactions(models.Model):
public = self.env['hr.holiday.officials'].search([('active', '=', True), ('state', '=', 'confirm'),
('date_from', '<=', day_item),
('date_to', '>=', day_item)])
employee_list = self.env['hr.employee'].search([('state', '=', 'open'),('id','=',2949)]) \
employee_list = self.env['hr.employee'].search([('state', '=', 'open')]) \
if not attendance_employee else attendance_employee
for employee in employee_list: