fix: check billing address

(cherry picked from commit 9950e4aa0c)
This commit is contained in:
Sudharsanan11
2025-02-04 10:59:10 +05:30
committed by Mergify
parent 9510758ce4
commit 2f33f6bdf5

View File

@@ -262,8 +262,9 @@ def get_recipients_and_cc(customer, doc):
recipients = []
for clist in doc.customers:
if clist.customer == customer:
for email in clist.billing_email.split(","):
recipients.append(email.strip())
if clist.billing_email:
for email in clist.billing_email.split(","):
recipients.append(email.strip())
if doc.primary_mandatory and clist.primary_email:
for email in clist.primary_email.split(","):
recipients.append(email.strip())