[fix] opportunity email pulling

This commit is contained in:
Anand Doshi 2015-04-03 15:03:01 +05:30
parent c13c4f014e
commit 85e5d46370

View File

@ -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",