fix in test sending of newsletter
This commit is contained in:
parent
f7d5e22662
commit
05f35b723d
@ -28,7 +28,7 @@ class DocType():
|
|||||||
|
|
||||||
def test_send(self, doctype="Lead"):
|
def test_send(self, doctype="Lead"):
|
||||||
self.recipients = self.doc.test_email_id.split(",")
|
self.recipients = self.doc.test_email_id.split(",")
|
||||||
self.send_to_doctype = "Email"
|
self.send_to_doctype = "Lead"
|
||||||
self.send_bulk()
|
self.send_bulk()
|
||||||
webnotes.msgprint("""Scheduled to send to %s""" % self.doc.test_email_id)
|
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}):
|
if not webnotes.conn.exists({"doctype": "Lead", "email_id": email}):
|
||||||
create_lead(email)
|
create_lead(email)
|
||||||
|
|
||||||
self.send_to_doctype = "Email"
|
self.send_to_doctype = "Lead"
|
||||||
return email_list
|
return email_list
|
||||||
|
|
||||||
def send_bulk(self):
|
def send_bulk(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user