mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-28 09:24:45 +00:00
[incoming sales email] to opportunity
This commit is contained in:
@@ -16,10 +16,10 @@ class Opportunity(TransactionBase):
|
|||||||
if not lead_name:
|
if not lead_name:
|
||||||
lead = frappe.get_doc({
|
lead = frappe.get_doc({
|
||||||
"doctype": "Lead",
|
"doctype": "Lead",
|
||||||
"email_id": email_id
|
"email_id": email_id,
|
||||||
"lead_name": email_id
|
"lead_name": email_id
|
||||||
})
|
})
|
||||||
lead.insert()
|
lead.insert(ignore_permissions=True)
|
||||||
lead_name = lead.name
|
lead_name = lead.name
|
||||||
|
|
||||||
self.enquiry_from = "Lead"
|
self.enquiry_from = "Lead"
|
||||||
|
|||||||
Reference in New Issue
Block a user