[incoming sales email] to opportunity
This commit is contained in:
parent
4c46687fb1
commit
3c626faf8f
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user