mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
[crm] Updated status and workflow for Lead > Opportunity > Quotation > Sales Order
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user