fix: check billing address
This commit is contained in:
@@ -321,6 +321,7 @@ 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:
|
||||||
|
if clist.billing_email:
|
||||||
for email in clist.billing_email.split(","):
|
for email in clist.billing_email.split(","):
|
||||||
recipients.append(email.strip())
|
recipients.append(email.strip())
|
||||||
if doc.primary_mandatory and clist.primary_email:
|
if doc.primary_mandatory and clist.primary_email:
|
||||||
|
|||||||
Reference in New Issue
Block a user