mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-14 23:18:40 +00:00
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:
@@ -279,7 +279,7 @@ class Opportunity(TransactionBase, CRMNote):
|
|||||||
self.save()
|
self.save()
|
||||||
|
|
||||||
else:
|
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):
|
def has_active_quotation(self):
|
||||||
if not self.get("items", []):
|
if not self.get("items", []):
|
||||||
|
|||||||
Reference in New Issue
Block a user