From 4ac30940490bead421e3c5975a5dce69220ee33d Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 13 Apr 2015 16:56:03 +0530 Subject: [PATCH] [opportunity] status open --- erpnext/controllers/status_updater.py | 2 +- erpnext/crm/doctype/opportunity/opportunity.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/erpnext/controllers/status_updater.py b/erpnext/controllers/status_updater.py index 97b06fa755f..0109b6891da 100644 --- a/erpnext/controllers/status_updater.py +++ b/erpnext/controllers/status_updater.py @@ -13,12 +13,12 @@ status_map = { ["Opportunity", "has_opportunity"], ], "Opportunity": [ - ["Open", None], ["Lost", "eval:self.status=='Lost'"], ["Quotation", "has_quotation"], ["Converted", "has_ordered_quotation"] ], "Quotation": [ + ["Draft", None], ["Submitted", "eval:self.docstatus==1"], ["Lost", "eval:self.status=='Lost'"], ["Ordered", "has_sales_order"], diff --git a/erpnext/crm/doctype/opportunity/opportunity.json b/erpnext/crm/doctype/opportunity/opportunity.json index 3592cc124ec..5144ad3eacc 100644 --- a/erpnext/crm/doctype/opportunity/opportunity.json +++ b/erpnext/crm/doctype/opportunity/opportunity.json @@ -119,7 +119,7 @@ "no_copy": 1, "oldfieldname": "status", "oldfieldtype": "Select", - "options": "Open\nQuotation\nLost\nReplied", + "options": "Open\nQuotation\nLost\nReplied\nClosed", "permlevel": 0, "print_hide": 1, "read_only": 0, @@ -407,7 +407,7 @@ "icon": "icon-info-sign", "idx": 1, "is_submittable": 0, - "modified": "2015-04-13 06:50:43.198407", + "modified": "2015-04-13 07:25:51.598251", "modified_by": "Administrator", "module": "CRM", "name": "Opportunity",