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(); },