From ac030a57c2fc568563f070c572dda1834f66a7b9 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Mon, 23 Sep 2013 16:27:18 +0530 Subject: [PATCH] [minor] [cleanup] removed banner from lead --- selling/doctype/lead/lead.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/selling/doctype/lead/lead.js b/selling/doctype/lead/lead.js index a3ae783867..aadc091da9 100644 --- a/selling/doctype/lead/lead.js +++ b/selling/doctype/lead/lead.js @@ -34,15 +34,6 @@ erpnext.LeadController = wn.ui.form.Controller.extend({ erpnext.hide_naming_series(); this.frm.clear_custom_buttons(); - this.frm.dashboard.reset(doc); - if(!doc.__islocal) { - if(doc.status=="Converted") { - this.frm.dashboard.set_headline_alert(wn._("Converted"), "alert-success", "icon-ok-sign"); - } else { - this.frm.dashboard.set_headline_alert(wn._(doc.status), "alert-info", "icon-exclamation-sign"); - } - } - this.frm.__is_customer = this.frm.__is_customer || this.frm.doc.__is_customer; if(!this.frm.doc.__islocal && !this.frm.__is_customer) { this.frm.add_custom_button("Create Customer", this.create_customer);