Merge branch 'preprod_odex25_mobile' into dev_odex25_mobile

This commit is contained in:
eslam 2024-09-11 11:16:39 +03:00 committed by GitHub
commit abc593628a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -247,6 +247,7 @@ class LeaveController(http.Controller):
utc_dt_to, "%Y-%m-%d %H:%M:%S")
to_date = fields.Datetime.to_string(to_date)
vals = {
"employee_id": employee.id,
"date_from": from_date,
@ -254,6 +255,7 @@ class LeaveController(http.Controller):
"name": body["description"] if body.get("description") else "",
"holiday_status_id": int(body["type_id"]),
"delegate_acc": False if body["delegated_permission"] in ("false","False",'') else True ,
# 'replace_by': int(body['replacement_id']) if body['replacement_id'] else False
}
if 'ticket' in body and body['ticket']: