瀏覽代碼

fix(Workflow Action): Pass doc to attach_print to avoid "Not Found"

- Printview used to go empty for new document due to "Not Found" error in printview because that new document has not been saved in the database while processing workflow action email.
version-14
Suraj Shetty 3 年之前
父節點
當前提交
20c9af556f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      frappe/workflow/doctype/workflow_action/workflow_action.py

+ 1
- 1
frappe/workflow/doctype/workflow_action/workflow_action.py 查看文件

@@ -292,7 +292,7 @@ def get_common_email_args(doc):
common_args = {
'template': 'workflow_action',
'header': 'Workflow Action',
'attachments': [frappe.attach_print(doctype, docname , file_name=docname)],
'attachments': [frappe.attach_print(doctype, docname, file_name=docname, doc=doc)],
'subject': subject,
'message': response
}


Loading…
取消
儲存