fix: reload doctype before running after_install

This commit is contained in:
Shariq Ansari 2024-01-30 01:43:50 +05:30
parent 939176fd03
commit 2abdfe1d70

View File

@ -44,7 +44,7 @@ def add_default_lead_statuses():
"position": 6,
},
}
frappe.reload_doctype("CRM Lead Status")
for status in statuses:
if frappe.db.exists("CRM Lead Status", status):
continue