fix(workflow_action): Pass context as dict to render template

This commit is contained in:
Corentin Forler 2025-02-21 14:47:28 +01:00 committed by GitHub
parent 42f9e537d0
commit f72dc93446
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)