[fix] Not able to change the status as Lost in opportunity (#8938)

This commit is contained in:
rohitwaghchaure 2017-05-19 18:56:54 +05:30 committed by Rushabh Mehta
parent 177a26849d
commit 529f5ce503

View File

@ -75,7 +75,7 @@ class Opportunity(TransactionBase):
self.lead = lead_name
def declare_enquiry_lost(self,arg):
if not self.has_quotation():
if not self.has_lost_quotation():
frappe.db.set(self, 'status', 'Lost')
frappe.db.set(self, 'order_lost_reason', arg)
else: