fix in test sending of newsletter

This commit is contained in:
Anand Doshi 2013-02-21 12:50:43 +05:30
parent 51fc7c0683
commit f7d5e22662

View File

@ -28,6 +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_bulk()
webnotes.msgprint("""Scheduled to send to %s""" % self.doc.test_email_id)
@ -75,7 +76,7 @@ class DocType():
if not webnotes.conn.exists({"doctype": "Lead", "email_id": email}):
create_lead(email)
self.send_to_doctype = "Lead"
self.send_to_doctype = "Email"
return email_list
def send_bulk(self):