From e8aaf4b92fbe824b43b271c72390598b2adfb6df Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Fri, 29 Nov 2013 11:03:33 +0530 Subject: [PATCH] [minor] Lead bugfix webnotes/erpnext#1115 --- selling/doctype/lead/lead.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selling/doctype/lead/lead.js b/selling/doctype/lead/lead.js index 79d649bb42..54a249fbe1 100644 --- a/selling/doctype/lead/lead.js +++ b/selling/doctype/lead/lead.js @@ -34,7 +34,7 @@ erpnext.LeadController = wn.ui.form.Controller.extend({ this.frm.clear_custom_buttons(); this.frm.__is_customer = this.frm.__is_customer || this.frm.doc.__is_customer; - if(!this.frm.doc.__islocal && !this.frm.__is_customer) { + if(!this.frm.doc.__islocal && !this.frm.doc.__is_customer) { this.frm.add_custom_button(wn._("Create Customer"), this.create_customer); this.frm.add_custom_button(wn._("Create Opportunity"), this.create_opportunity); this.frm.appframe.add_button(wn._("Send SMS"), this.frm.cscript.send_sms, "icon-mobile-phone");