Merge pull request #4763 from expsa/bakry_hr

fix report mission add especially_hours
This commit is contained in:
bakry 2025-09-28 13:16:23 +03:00 committed by GitHub
commit c305d94dcc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class EmployeeMissionReport(models.AbstractModel):
if form['mission_type']:
day_case += [('mission_type', '=', form['mission_type'][0])]
day_case += [('employee_ids.employee_id', 'in', employees.ids), ('state', 'not in', ['draft', 'refused']),
('process_type', '=', 'mission'), '|',
('process_type', 'in', ('mission','especially_hours')), '|',
'|'] + clause_1 + clause_2 + clause_3
day = self.env['hr.official.mission'].sudo().search(day_case)
day_mission = day.sorted(key=lambda r: r.department_id.id)