[fix] Not able to change the status as Lost in opportunity (#8938)
This commit is contained in:
parent
177a26849d
commit
529f5ce503
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user