fix(workflow_action): Pass context as dict to render template
This commit is contained in:
parent
42f9e537d0
commit
f72dc93446
1 changed files with 3 additions and 0 deletions
|
|
@ -476,6 +476,9 @@ def get_email_template_from_workflow(doc):
|
|||
|
||||
if not template_name:
|
||||
return
|
||||
|
||||
if isinstance(doc, Document):
|
||||
doc = doc.as_dict()
|
||||
return get_email_template(template_name, doc)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue