This commit is contained in:
odex 2024-07-08 14:38:06 +03:00
parent 5fee16f23a
commit e932f0c730
1 changed files with 1 additions and 1 deletions

View File

@ -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,