mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-15 19:19:17 +00:00
refactor(call_log): type annotations for whitelisted methods
This commit is contained in:
@@ -126,7 +126,7 @@ class CallLog(Document):
|
|||||||
|
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def add_call_summary_and_call_type(call_log, summary, call_type):
|
def add_call_summary_and_call_type(call_log: str, summary: str, call_type: str):
|
||||||
doc = frappe.get_doc("Call Log", call_log)
|
doc = frappe.get_doc("Call Log", call_log)
|
||||||
doc.type_of_call = call_type
|
doc.type_of_call = call_type
|
||||||
doc.save()
|
doc.save()
|
||||||
|
|||||||
Reference in New Issue
Block a user