[minor] [cleanup] removed banner from lead

This commit is contained in:
Nabin Hait 2013-09-23 16:27:18 +05:30
parent 1e15fe1ade
commit ac030a57c2

View File

@ -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);