Merge pull request #3310 from expsa/dev_odex25_mobile

Dev odex25 mobile
This commit is contained in:
mohammed-alkhazrji 2025-05-27 13:02:33 +03:00 committed by GitHub
commit da0ee8cfb0
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({