From 227a4953c8141a6a7d3fdbc4fbb230c12f4eaae3 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Tue, 30 Jan 2024 02:04:34 +0530 Subject: [PATCH] fix: reload doctype before install --- crm/install.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crm/install.py b/crm/install.py index 351dd8ce..5e9857b4 100644 --- a/crm/install.py +++ b/crm/install.py @@ -7,7 +7,9 @@ import frappe from frappe.custom.doctype.custom_field.custom_field import create_custom_fields def before_install(): - pass + frappe.reload_doc("fcrm", "doctype", "crm_lead_status") + frappe.reload_doc("fcrm", "doctype", "crm_deal_status") + frappe.reload_doc("fcrm", "doctype", "crm_communication_status") def after_install(): add_default_lead_statuses()