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()