I extended account_dunning_email to meet my clients requests. To do that I extended the function
def _email to make the changes (https://hg.tryton.org/modules/account_dunning_email/file/tip/account.py#l112). But now I also want to add a BCC email-address to it. Unfortunately that means also extending the
def send_email function.
With an small change this can be avoided, so a developer only needs to extend the
def _email to do all the work. This change is to modify:
msg = self._email(from_, to, cc, bcc, languages) to_addrs = [e for _, e in getaddresses(to + cc + bcc)]
msg = self._email(from_, to, cc, bcc, languages) to_addrs = [e for _, e in getaddresses(msg['To'] + msg['Cc'] + msg['Bcc'])]
Any thought on this?