Merge pull request #9090 from mbauskar/hotfix

[minor] fixed a unexpected token error for opportunity
This commit is contained in:
Saurabh 2017-05-30 22:42:31 +05:30 committed by GitHub
commit 9a342c6401

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