From 648fd16e9842917e3637f1db6f5a1252156ed280 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 19 Jul 2013 14:15:58 +0530 Subject: [PATCH] [minor] [fix] #616 --- selling/doctype/opportunity/opportunity.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selling/doctype/opportunity/opportunity.js b/selling/doctype/opportunity/opportunity.js index 606f9a78f3..00acf55153 100644 --- a/selling/doctype/opportunity/opportunity.js +++ b/selling/doctype/opportunity/opportunity.js @@ -54,7 +54,7 @@ erpnext.selling.Opportunity = wn.ui.form.Controller.extend({ }); } - if(this.frm.doc.customer && !this.frm.doc.customer_name) cur_frm.cscript.customer(doc); + if(this.frm.doc.customer && !this.frm.doc.customer_name) cur_frm.cscript.customer(this.frm.doc); this.setup_queries(); },