fix: Fixes related to customer/lead merging (#18075)

This commit is contained in:
Nabin Hait
2019-06-28 12:36:27 +05:30
committed by GitHub
parent 42e62bd1b4
commit b059c6f630
7 changed files with 26 additions and 12 deletions

View File

@@ -320,11 +320,11 @@ def make_opportunity_from_communication(communication, ignore_communication_link
if not lead:
lead = make_lead_from_communication(communication, ignore_communication_links=True)
enquiry_from = "Lead"
opportunity_from = "Lead"
opportunity = frappe.get_doc({
"doctype": "Opportunity",
"enquiry_from": enquiry_from,
"opportunity_from": opportunity_from,
"lead": lead
}).insert(ignore_permissions=True)