From 529f5ce503e52888ec88bf6c12c2ad36b954d374 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Fri, 19 May 2017 18:56:54 +0530 Subject: [PATCH] [fix] Not able to change the status as Lost in opportunity (#8938) --- erpnext/crm/doctype/opportunity/opportunity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/crm/doctype/opportunity/opportunity.py b/erpnext/crm/doctype/opportunity/opportunity.py index 8a21e7c7461..8c695ed4c0d 100644 --- a/erpnext/crm/doctype/opportunity/opportunity.py +++ b/erpnext/crm/doctype/opportunity/opportunity.py @@ -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: