diff --git a/erpnext/selling/doctype/quotation/quotation.js b/erpnext/selling/doctype/quotation/quotation.js index 64af35d8cc..43fa20f8c1 100644 --- a/erpnext/selling/doctype/quotation/quotation.js +++ b/erpnext/selling/doctype/quotation/quotation.js @@ -105,6 +105,10 @@ erpnext.selling.QuotationController = erpnext.selling.SellingController.extend({ lead: function() { var me = this; + if(!this.frm.doc.lead) { + return; + } + frappe.call({ method: "erpnext.crm.doctype.lead.lead.get_lead_details", args: {