Merge pull request #1007 from shariquerik/lost-reason-fix

This commit is contained in:
Shariq Ansari 2025-07-02 17:26:54 +05:30 committed by GitHub
commit 0b97462dc9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -381,7 +381,7 @@ def add_default_lost_reasons():
]
for reason in lost_reasons:
if frappe.db.exists("CRM Lost Reason", reason):
if frappe.db.exists("CRM Lost Reason", reason["reason"]):
continue
doc = frappe.new_doc("CRM Lost Reason")