[Fix] Owner of the document not getting the notifications for transactions they follow (#5396)

This commit is contained in:
rohitwaghchaure 2018-04-06 14:54:29 +05:30 committed by Nabin Hait
parent 4e98f1689e
commit 0b251f44fb

View file

@ -130,7 +130,7 @@ def notify(doc, print_html=None, print_format=None, attachments=None,
recipients, cc, bcc = get_recipients_cc_and_bcc(doc, recipients, cc, bcc,
fetched_from_email_account=fetched_from_email_account)
if not recipients:
if not recipients and not cc:
return
doc.emails_not_sent_to = set(doc.all_email_addresses) - set(doc.sent_email_addresses)