From b7af3d033e78eb187d44d8b2284f5146e3e21f98 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 7 Mar 2013 12:17:52 +0530 Subject: [PATCH] changed field contact_no to phone in lead details of transaction base --- utilities/transaction_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/transaction_base.py b/utilities/transaction_base.py index 61486c50d5..905e98f4bc 100644 --- a/utilities/transaction_base.py +++ b/utilities/transaction_base.py @@ -153,7 +153,7 @@ class TransactionBase(DocListController): # Get Lead Details # ----------------------- def get_lead_details(self, name): - details = webnotes.conn.sql("select name, lead_name, address_line1, address_line2, city, country, state, pincode, territory, contact_no, mobile_no, email_id, company_name from `tabLead` where name = '%s'" %(name), as_dict = 1) + details = webnotes.conn.sql("select name, lead_name, address_line1, address_line2, city, country, state, pincode, territory, phone, mobile_no, email_id, company_name from `tabLead` where name = '%s'" %(name), as_dict = 1) extract = lambda x: details and details[0] and details[0].get(x,'') or '' address_fields = [('','address_line1'),('\n','address_line2'),('\n','city'),(' ','pincode'),('\n','state'),('\n','country'),('\nPhone: ','contact_no')]