[crm] Updated status and workflow for Lead > Opportunity > Quotation > Sales Order

This commit is contained in:
Rushabh Mehta
2013-10-03 17:26:33 +05:30
parent 43247cedea
commit 800b3aa437
21 changed files with 213 additions and 202 deletions

View File

@@ -12,14 +12,6 @@ class DocType(TransactionBase):
self.doc = doc
self.doclist = doclist
def on_communication(self, comm):
if webnotes.conn.get_value("Profile", extract_email_id(comm.sender), "user_type")=="System User":
status = "Replied"
else:
status = "Open"
webnotes.conn.set(self.doc, 'status', status)
def autoname(self):
# concat first and last name
self.doc.name = " ".join(filter(None,
@@ -32,6 +24,7 @@ class DocType(TransactionBase):
break
def validate(self):
self.set_status()
self.validate_primary_contact()
def validate_primary_contact(self):

View File

@@ -2,7 +2,7 @@
{
"creation": "2013-01-10 16:34:32",
"docstatus": 0,
"modified": "2013-09-10 10:50:27",
"modified": "2013-10-03 16:44:08",
"modified_by": "Administrator",
"owner": "Administrator"
},
@@ -70,11 +70,12 @@
"fieldtype": "Column Break"
},
{
"default": "Passive",
"doctype": "DocField",
"fieldname": "status",
"fieldtype": "Select",
"label": "Status",
"options": "\nOpen\nReplied"
"options": "Passive\nOpen\nReplied"
},
{
"doctype": "DocField",