Browse Source

fix: Link workflow document

version-14
Suraj Shetty 3 years ago
parent
commit
1553ebdc99
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      frappe/workflow/doctype/workflow_action/workflow_action.py

+ 3
- 2
frappe/workflow/doctype/workflow_action/workflow_action.py View File

@@ -9,9 +9,10 @@ from frappe.desk.form.utils import get_pdf_link
from frappe.utils.verified_command import get_signed_params, verify_request
from frappe import _
from frappe.model.workflow import apply_workflow, get_workflow_name, has_approval_access, \
get_workflow_state_field, send_email_alert, get_workflow_field_value, is_transition_condition_satisfied
get_workflow_state_field, send_email_alert, is_transition_condition_satisfied
from frappe.desk.notifications import clear_doctype_notifications
from frappe.utils.user import get_users_with_role
from frappe.utils.data import get_link_to_form

class WorkflowAction(Document):
pass
@@ -287,7 +288,7 @@ def get_common_email_args(doc):
response = frappe.render_template(email_template.response, vars(doc))
else:
subject = _('Workflow Action')
response = _('{0}: {1}').format(doctype, docname)
response = get_link_to_form(doctype, docname, f"{doctype}: {docname}")

common_args = {
'template': 'workflow_action',


Loading…
Cancel
Save