mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-05 22:48:27 +00:00
Merge pull request #22973 from marination/opportunity-from-email-fix
fix: Creating opportunity from email
This commit is contained in:
@@ -334,7 +334,7 @@ def make_opportunity_from_communication(communication, ignore_communication_link
|
|||||||
opportunity = frappe.get_doc({
|
opportunity = frappe.get_doc({
|
||||||
"doctype": "Opportunity",
|
"doctype": "Opportunity",
|
||||||
"opportunity_from": opportunity_from,
|
"opportunity_from": opportunity_from,
|
||||||
"lead": lead
|
"party_name": lead
|
||||||
}).insert(ignore_permissions=True)
|
}).insert(ignore_permissions=True)
|
||||||
|
|
||||||
link_communication_to_document(doc, "Opportunity", opportunity.name, ignore_communication_links)
|
link_communication_to_document(doc, "Opportunity", opportunity.name, ignore_communication_links)
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ frappe.ui.form.on("Communication", {
|
|||||||
frappe.confirm(__(confirm_msg, [__("Issue")]), () => {
|
frappe.confirm(__(confirm_msg, [__("Issue")]), () => {
|
||||||
frm.trigger('make_issue_from_communication');
|
frm.trigger('make_issue_from_communication');
|
||||||
})
|
})
|
||||||
}, "Make");
|
}, "Create");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!in_list(["Lead", "Opportunity"], frm.doc.reference_doctype)) {
|
if(!in_list(["Lead", "Opportunity"], frm.doc.reference_doctype)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user