Merge pull request #7311 from rohitwaghchaure/not_able_to_create_lead_from_communication_develop
fix: User not able to make lead from the communication
This commit is contained in:
commit
7363ed21be
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