mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-20 23:35:11 +00:00
fix: Replace walrus operator
This commit is contained in:
@@ -94,7 +94,8 @@ class CallLog(Document):
|
|||||||
frappe.publish_realtime("show_call_popup", self, user=email)
|
frappe.publish_realtime("show_call_popup", self, user=email)
|
||||||
|
|
||||||
def update_received_by(self):
|
def update_received_by(self):
|
||||||
if employees := get_employees_with_number(self.get("to")):
|
employees = get_employees_with_number(self.get("to"))
|
||||||
|
if employees:
|
||||||
self.call_received_by = employees[0].get("name")
|
self.call_received_by = employees[0].get("name")
|
||||||
self.employee_user_id = employees[0].get("user_id")
|
self.employee_user_id = employees[0].get("user_id")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user