Merge pull request #4763 from expsa/bakry_hr
fix report mission add especially_hours
This commit is contained in:
commit
c305d94dcc
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue