mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 08:24:47 +00:00
[fix] Not able to change the status as Lost in opportunity (#8938)
This commit is contained in:
committed by
Rushabh Mehta
parent
177a26849d
commit
529f5ce503
@@ -75,7 +75,7 @@ class Opportunity(TransactionBase):
|
|||||||
self.lead = lead_name
|
self.lead = lead_name
|
||||||
|
|
||||||
def declare_enquiry_lost(self,arg):
|
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, 'status', 'Lost')
|
||||||
frappe.db.set(self, 'order_lost_reason', arg)
|
frappe.db.set(self, 'order_lost_reason', arg)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user