fix(crm): clarify the reason why an opportunity cannot be declared as lost (backport #57495) (#57498)

Co-authored-by: Raffael Meyer <14891507+barredterra@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2026-07-27 17:01:21 +02:00
committed by GitHub
parent 1f9c4bc933
commit 3ea19d8eb1

View File

@@ -279,7 +279,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", []):