diff --git a/erpnext/crm/doctype/opportunity/opportunity.js b/erpnext/crm/doctype/opportunity/opportunity.js index 0e14c85b2c..96d6ac5d99 100644 --- a/erpnext/crm/doctype/opportunity/opportunity.js +++ b/erpnext/crm/doctype/opportunity/opportunity.js @@ -54,7 +54,7 @@ frappe.ui.form.on("Opportunity", { frm.add_custom_button(__('Lost'), cur_frm.cscript['Declare Opportunity Lost']); } - }, + } if(!frm.doc.__islocal && frm.perm[0].write && frm.doc.docstatus==0) { if(frm.doc.status==="Open") {