fix: pass doc as dict to safe_eval
This commit is contained in:
parent
94d796ea1c
commit
411ca69400
1 changed files with 1 additions and 1 deletions
|
|
@ -327,4 +327,4 @@ def evaluate_alert(doc, alert, event):
|
|||
frappe.utils.get_link_to_form('Error Log', error_log.name))))
|
||||
|
||||
def get_context(doc):
|
||||
return {"doc": doc, "nowdate": nowdate, "frappe.utils": frappe.utils}
|
||||
return {"doc": doc.as_dict(), "nowdate": nowdate, "frappe.utils": frappe.utils}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue