From e932f0c7309b953da31bcb0bf9e42d2081577702 Mon Sep 17 00:00:00 2001 From: odex Date: Mon, 8 Jul 2024 14:38:06 +0300 Subject: [PATCH] fix --- odex25_mobile/odex_mobile/controllers/leave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/odex25_mobile/odex_mobile/controllers/leave.py b/odex25_mobile/odex_mobile/controllers/leave.py index cf2de4bbc..d7831ba70 100644 --- a/odex25_mobile/odex_mobile/controllers/leave.py +++ b/odex25_mobile/odex_mobile/controllers/leave.py @@ -18,10 +18,10 @@ _logger = logging.getLogger(__name__) import re class LeaveController(http.Controller): - def get_return_data(self,hol,approvel=None): value = {'id': hol.id, 'type': hol.holiday_status_id.name, 'type_value': hol.holiday_status_id.id, + 'reason_msg': hol.reject_reason or "", 'alternative_chick': hol.holiday_status_id.alternative_chick, 'replacement_id': hol.replace_by.id if hol.replace_by else False, 'replacement_name': hol.replace_by.name if hol.replace_by else False,