Merge branch 'preprod_odex25_mobile' into dev_odex25_mobile
This commit is contained in:
commit
abc593628a
|
|
@ -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']:
|
||||
|
|
|
|||
Loading…
Reference in New Issue