fix: renamed other_lost_reason to lost_notes

(cherry picked from commit 5bbec00803e299c3d997bd5d3335ef2a4ab78028)
This commit is contained in:
Shariq Ansari 2025-07-02 13:59:34 +05:30 committed by Mergify
parent 040692c13c
commit 6647a83485

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