Cleanup of lead and opportunity status updating logic
diff --git a/erpnext/controllers/status_updater.py b/erpnext/controllers/status_updater.py
index da09e26..096bb2d 100644
--- a/erpnext/controllers/status_updater.py
+++ b/erpnext/controllers/status_updater.py
@@ -14,15 +14,17 @@
status_map = {
"Lead": [
- ["Converted", "has_customer"],
+ ["Lost Quotation", "has_lost_quotation"],
["Opportunity", "has_opportunity"],
+ ["Quotation", "has_quotation"],
+ ["Converted", "has_customer"],
],
"Opportunity": [
["Quotation", "has_quotation"],
["Converted", "has_ordered_quotation"],
["Lost", "eval:self.status=='Lost'"],
+ ["Lost", "has_lost_quotation"],
["Closed", "eval:self.status=='Closed'"]
-
],
"Quotation": [
["Draft", None],