mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
[fix] opportunity email pulling
This commit is contained in:
@@ -12,7 +12,7 @@ from erpnext.utilities.transaction_base import TransactionBase
|
|||||||
class Opportunity(TransactionBase):
|
class Opportunity(TransactionBase):
|
||||||
def set_sender(self, email_id):
|
def set_sender(self, email_id):
|
||||||
"""Set lead against new opportunity"""
|
"""Set lead against new opportunity"""
|
||||||
lead_name = frappe.get_value("Lead", {"email_id": email_id})
|
lead_name = frappe.db.get_value("Lead", {"email_id": email_id})
|
||||||
if not lead_name:
|
if not lead_name:
|
||||||
lead = frappe.get_doc({
|
lead = frappe.get_doc({
|
||||||
"doctype": "Lead",
|
"doctype": "Lead",
|
||||||
|
|||||||
Reference in New Issue
Block a user