From 596ff91b3a8d250fb6987f4d562235ddeeda3e8b Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Tue, 2 Apr 2013 18:24:06 +0530 Subject: [PATCH] [quotation][improvement] when made from lead --- patches/april_2013/p03_fixes_for_lead_in_quotation.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/patches/april_2013/p03_fixes_for_lead_in_quotation.py b/patches/april_2013/p03_fixes_for_lead_in_quotation.py index 21a57faeb9..1b9650b166 100644 --- a/patches/april_2013/p03_fixes_for_lead_in_quotation.py +++ b/patches/april_2013/p03_fixes_for_lead_in_quotation.py @@ -12,4 +12,7 @@ def execute(): where quotation_to = 'Lead' and ifnull(lead, '') != '' and ifnull(lead_name, '') != ''""") webnotes.conn.sql("""update `tabOpportunity` set contact_display = lead_name - where enquiry_from = 'Lead' and ifnull(lead, '') != '' and ifnull(lead_name, '') != ''""") \ No newline at end of file + where enquiry_from = 'Lead' and ifnull(lead, '') != '' and ifnull(lead_name, '') != ''""") + + webnotes.conn.sql("""update `tabOpportunity` opp, `tabLead` lead + set opp.customer_name = lead.company_name where opp.lead = lead.name""") \ No newline at end of file