mission purpose

This commit is contained in:
mohammed-alkhazrji 2025-05-27 13:00:04 +03:00
parent 60e3dd3d31
commit 08274948c4
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({