[enhancement] Email Alert - Allow email_by_document_field to have multiple emails separated by comma (#2936)
This commit is contained in:
parent
e50e5f15ef
commit
f7ffcbf423
1 changed files with 3 additions and 1 deletions
|
|
@ -99,7 +99,9 @@ def get_context(context):
|
|||
continue
|
||||
if recipient.email_by_document_field:
|
||||
if validate_email_add(doc.get(recipient.email_by_document_field)):
|
||||
recipients.append(doc.get(recipient.email_by_document_field))
|
||||
recipient.email_by_document_field = doc.get(recipient.email_by_document_field).replace(",", "\n")
|
||||
recipients = recipients + recipient.email_by_document_field.split("\n")
|
||||
|
||||
# else:
|
||||
# print "invalid email"
|
||||
if recipient.cc:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue