[minor] fixed a unexpected token error for opportunity

This commit is contained in:
mbauskar 2017-05-30 22:28:08 +05:30
parent f6c396f176
commit 26044f436a

View File

@ -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") {