From 4320142132c4812d9b6ece42cb8cc656e9065ff9 Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Mon, 14 Jul 2025 12:27:14 +0530 Subject: [PATCH] fix: update status type patch was not working --- crm/patches/v1_0/update_deal_status_type.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crm/patches/v1_0/update_deal_status_type.py b/crm/patches/v1_0/update_deal_status_type.py index 230f3776..d3e4084c 100644 --- a/crm/patches/v1_0/update_deal_status_type.py +++ b/crm/patches/v1_0/update_deal_status_type.py @@ -27,7 +27,7 @@ def execute(): ] for status in deal_statuses: - if status.type is None or status.type == "": + if not status.type or status.type is None or status.type == "Open": if status.deal_status in openStatuses: type = "Open" elif status.deal_status in ongoingStatuses: