fix: Creating opportunity from email

This commit is contained in:
marination
2020-08-10 12:39:42 +05:30
parent 5c0439f768
commit a07973cfa5
2 changed files with 2 additions and 2 deletions

View File

@@ -330,7 +330,7 @@ def make_opportunity_from_communication(communication, ignore_communication_link
opportunity = frappe.get_doc({
"doctype": "Opportunity",
"opportunity_from": opportunity_from,
"lead": lead
"party_name": lead
}).insert(ignore_permissions=True)
link_communication_to_document(doc, "Opportunity", opportunity.name, ignore_communication_links)