@@ -321,9 +321,11 @@ def get_recipients_and_cc(customer, doc):
|
|||||||
recipients = []
|
recipients = []
|
||||||
for clist in doc.customers:
|
for clist in doc.customers:
|
||||||
if clist.customer == customer:
|
if clist.customer == customer:
|
||||||
recipients.append(clist.billing_email)
|
for email in clist.billing_email.split(","):
|
||||||
|
recipients.append(email.strip())
|
||||||
if doc.primary_mandatory and clist.primary_email:
|
if doc.primary_mandatory and clist.primary_email:
|
||||||
recipients.append(clist.primary_email)
|
for email in clist.primary_email.split(","):
|
||||||
|
recipients.append(email.strip())
|
||||||
cc = []
|
cc = []
|
||||||
if doc.cc_to != "":
|
if doc.cc_to != "":
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user