From efc5dd93e91760aa73a4d8a360d642c4031df8ee Mon Sep 17 00:00:00 2001 From: Shariq Ansari Date: Fri, 11 Jul 2025 16:07:52 +0530 Subject: [PATCH] fix: added type in default deak status while installing --- crm/install.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/crm/install.py b/crm/install.py index ae0a437c..1b401db2 100644 --- a/crm/install.py +++ b/crm/install.py @@ -69,36 +69,43 @@ def add_default_deal_statuses(): statuses = { "Qualification": { "color": "gray", + "type": "Open", "probability": 10, "position": 1, }, "Demo/Making": { "color": "orange", + "type": "Ongoing", "probability": 25, "position": 2, }, "Proposal/Quotation": { "color": "blue", + "type": "Ongoing", "probability": 50, "position": 3, }, "Negotiation": { "color": "yellow", + "type": "Ongoing", "probability": 70, "position": 4, }, "Ready to Close": { "color": "purple", + "type": "Ongoing", "probability": 90, "position": 5, }, "Won": { "color": "green", + "type": "Won", "probability": 100, "position": 6, }, "Lost": { "color": "red", + "type": "Lost", "probability": 0, "position": 7, }, @@ -111,6 +118,7 @@ def add_default_deal_statuses(): doc = frappe.new_doc("CRM Deal Status") doc.deal_status = status doc.color = statuses[status]["color"] + doc.type = statuses[status]["type"] doc.probability = statuses[status]["probability"] doc.position = statuses[status]["position"] doc.insert()