From 08274948c41d402bc611db1ef80e2c8186556cec Mon Sep 17 00:00:00 2001 From: mohammed-alkhazrji Date: Tue, 27 May 2025 13:00:04 +0300 Subject: [PATCH] mission purpose --- .../odex_mobile/controllers/rest_api_v2/official_mission.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/odex25_mobile/odex_mobile/controllers/rest_api_v2/official_mission.py b/odex25_mobile/odex_mobile/controllers/rest_api_v2/official_mission.py index b900ef52b..c79d2b51e 100644 --- a/odex25_mobile/odex_mobile/controllers/rest_api_v2/official_mission.py +++ b/odex25_mobile/odex_mobile/controllers/rest_api_v2/official_mission.py @@ -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({