From 98a0fd814e28737461e59fd47e5672361ee81c11 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 27 Jul 2026 17:00:42 +0200 Subject: [PATCH] fix(crm): clarify the reason why an opportunity cannot be declared as lost (backport #57495) (#57497) Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com> --- 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 a1b03d88f70..7d4d1bb10bf 100644 --- a/erpnext/crm/doctype/opportunity/opportunity.py +++ b/erpnext/crm/doctype/opportunity/opportunity.py @@ -277,7 +277,7 @@ class Opportunity(TransactionBase, CRMNote): self.save() else: - frappe.throw(_("Cannot declare as lost, because Quotation has been made.")) + frappe.throw(_("Cannot declare as Lost because an active Quotation exists.")) def has_active_quotation(self): if not self.get("items", []):