From 6647a834859db155af8c974d26505e7eee2c35e3 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Wed, 2 Jul 2025 13:59:34 +0530 Subject: [PATCH] fix: renamed other_lost_reason to lost_notes (cherry picked from commit 5bbec00803e299c3d997bd5d3335ef2a4ab78028) --- crm/fcrm/doctype/crm_deal/crm_deal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm/fcrm/doctype/crm_deal/crm_deal.py b/crm/fcrm/doctype/crm_deal/crm_deal.py index 97b09523..3022e6a7 100644 --- a/crm/fcrm/doctype/crm_deal/crm_deal.py +++ b/crm/fcrm/doctype/crm_deal/crm_deal.py @@ -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