Status updater for quotation/lost to lead, quotation lost to oppt, and to set conversion as priority in lead

cleanup
squashed
This commit is contained in:
Alec Ruiz-Ramon
2016-06-09 14:19:51 -04:00
parent d395c7d54e
commit fcaaa29a58
5 changed files with 38 additions and 5 deletions

View File

@@ -13,15 +13,17 @@ def validate_status(status, options):
status_map = {
"Lead": [
["Converted", "has_customer"],
["Lost Quotation", "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],