fix in test sending of newsletter

This commit is contained in:
Anand Doshi 2013-02-21 12:51:42 +05:30
parent f7d5e22662
commit 05f35b723d

View File

@ -28,7 +28,7 @@ class DocType():
def test_send(self, doctype="Lead"):
self.recipients = self.doc.test_email_id.split(",")
self.send_to_doctype = "Email"
self.send_to_doctype = "Lead"
self.send_bulk()
webnotes.msgprint("""Scheduled to send to %s""" % self.doc.test_email_id)
@ -76,7 +76,7 @@ class DocType():
if not webnotes.conn.exists({"doctype": "Lead", "email_id": email}):
create_lead(email)
self.send_to_doctype = "Email"
self.send_to_doctype = "Lead"
return email_list
def send_bulk(self):