Merge pull request #3309 from expsa/salarise_endpoin

mission purpose
This commit is contained in:
mohammed-alkhazrji 2025-05-27 13:01:04 +03:00 committed by GitHub
commit 4e6853fefe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -256,6 +256,7 @@ class HrOfficialMissionController(http.Controller):
# Prepare the response
mission_type = kw.get('mission_type')
mission_purpose = kw.get('mission_purpose','')
date_from = kw.get('date_from')
date_to = kw.get('date_to')
hour_from = kw.get('hour_from', 8)
@ -280,6 +281,7 @@ class HrOfficialMissionController(http.Controller):
'destination': int(destination_type),
'employee_id': employee.id,
'process_type': 'especially_hours',
'mission_purpose':mission_purpose
})
request.env['hr.official.mission.employee'].sudo().create({