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:
rohitwaghchaure 2019-04-18 14:56:03 +05:30 committed by GitHub
commit 7363ed21be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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({