feat: Add call recording URL field to call log

This commit is contained in:
Suraj Shetty 2019-06-17 08:06:14 +05:30
parent 7877ef22ba
commit be1dddd596
2 changed files with 9 additions and 1 deletions

View File

@ -11,6 +11,7 @@
"section_break_5",
"status",
"duration",
"recording_url",
"summary"
],
"fields": [
@ -63,9 +64,15 @@
"fieldtype": "Data",
"label": "Summary",
"read_only": 1
},
{
"fieldname": "recording_url",
"fieldtype": "Data",
"label": "Recording URL",
"read_only": 1
}
],
"modified": "2019-06-07 09:49:07.623814",
"modified": "2019-06-17 08:01:46.881008",
"modified_by": "Administrator",
"module": "Communication",
"name": "Call Log",

View File

@ -39,6 +39,7 @@ def update_call_log(call_payload, status):
if call_log:
call_log.status = status
call_log.duration = call_payload.get('DialCallDuration') or 0
call_log.recording_url = call_payload.get('RecordingUrl')
call_log.save(ignore_permissions=True)
frappe.db.commit()
return call_log