From 85e5d463707c510b505ea228423e69e0675d0dd7 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 3 Apr 2015 15:03:01 +0530 Subject: [PATCH] [fix] opportunity email pulling --- erpnext/crm/doctype/opportunity/opportunity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/crm/doctype/opportunity/opportunity.py b/erpnext/crm/doctype/opportunity/opportunity.py index 80b35f2243..71f95ade36 100644 --- a/erpnext/crm/doctype/opportunity/opportunity.py +++ b/erpnext/crm/doctype/opportunity/opportunity.py @@ -12,7 +12,7 @@ from erpnext.utilities.transaction_base import TransactionBase class Opportunity(TransactionBase): def set_sender(self, email_id): """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: lead = frappe.get_doc({ "doctype": "Lead",