sales communication fix for status
diff --git a/selling/doctype/lead/get_leads.py b/selling/doctype/lead/get_leads.py
index c5e1434..d1a4a3d 100644
--- a/selling/doctype/lead/get_leads.py
+++ b/selling/doctype/lead/get_leads.py
@@ -24,7 +24,7 @@
def set_status(doctype, name):
w = webnotes.model_wrapper(doctype, name)
w.ignore_permissions = True
- w.doc.status = status
+ w.doc.status = is_system_user and "Replied" or status
w.doc.save()
if mail:
mail.save_attachments_in_doc(w.doc)
@@ -50,9 +50,9 @@
lead=lead_name, contact=contact_name)
if contact_name:
- doc = set_status("Contact", contact_name, is_system_user and "Replied" or status)
+ set_status("Contact", contact_name)
elif lead_name:
- doc set_status("Lead", lead_name, is_system_user and "Replied" or status)
+ set_status("Lead", lead_name)
class SalesMailbox(POP3Mailbox):