fix(Document Follow): Skip Email Account and Email Domain (#11973)

This commit is contained in:
Anurag Mishra 2020-11-24 09:35:18 +05:30 committed by GitHub
parent 3bc4c0475b
commit 0866526d11
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ def follow_document(doctype, doc_name, user, force=False):
avoided for some doctype
follow only if track changes are set to 1
'''
if (doctype in ("Communication", "ToDo", "Email Unsubscribe", "File", "Comment")
if (doctype in ("Communication", "ToDo", "Email Unsubscribe", "File", "Comment", "Email Account", "Email Domain")
or doctype in log_types):
return