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:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user