fix: renamed other_lost_reason to lost_notes

This commit is contained in:
Shariq Ansari 2025-07-02 13:59:34 +05:30
parent 7730e46cfc
commit 5bbec00803

View File

@ -157,7 +157,7 @@ class CRMDeal(Document):
if self.status == "Lost":
if not self.lost_reason:
frappe.throw(_("Please specify a reason for losing the deal."), frappe.ValidationError)
elif self.lost_reason == "Other" and not self.other_lost_reason:
elif self.lost_reason == "Other" and not self.lost_notes:
frappe.throw(_("Please specify the reason for losing the deal."), frappe.ValidationError)
@staticmethod