fix: renamed other_lost_reason to lost_notes
This commit is contained in:
parent
7730e46cfc
commit
5bbec00803
@ -157,7 +157,7 @@ class CRMDeal(Document):
|
|||||||
if self.status == "Lost":
|
if self.status == "Lost":
|
||||||
if not self.lost_reason:
|
if not self.lost_reason:
|
||||||
frappe.throw(_("Please specify a reason for losing the deal."), frappe.ValidationError)
|
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)
|
frappe.throw(_("Please specify the reason for losing the deal."), frappe.ValidationError)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user