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 21a57faeb9e..1b9650b166d 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