Merge branch 'hotfix'

This commit is contained in:
Nabin Hait 2017-05-30 22:52:38 +05:30
commit 38fae6a240
2 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
from __future__ import unicode_literals
import frappe
__version__ = '8.0.41'
__version__ = '8.0.42'
def get_default_company(user=None):

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