fix: User not able to make lead from the communication
This commit is contained in:
parent
40978eed7c
commit
3c01d85a3f
1 changed files with 1 additions and 1 deletions
|
|
@ -145,7 +145,7 @@ def make_lead_from_communication(communication, ignore_communication_links=False
|
|||
lead_name = None
|
||||
if doc.sender:
|
||||
lead_name = frappe.db.get_value("Lead", {"email_id": doc.sender})
|
||||
if not lead_name and doc.mobile_no:
|
||||
if not lead_name and doc.phone_no:
|
||||
lead_name = frappe.db.get_value("Lead", {"mobile_no": doc.phone_no})
|
||||
if not lead_name:
|
||||
lead = frappe.get_doc({
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue