def return_action_confirmation_page(doc, action, action_link, alert_doc_change=False): template_params = { 'title': doc.get('name'), 'doctype': doc.get('doctype'), 'docname': doc.get('name'), 'action': action, 'action_link': action_link, 'alert_doc_change': alert_doc_change } template_params['pdf_link'] = get_pdf_link(doc.get('doctype'), doc.get('name')) frappe.respond_as_web_page(None, None, indicator_color="blue", template="confirm_workflow_action", context=template_params)
def return_action_confirmation_page(doc, action, action_link, alert_doc_change=False): template_params = { "title": doc.get("name"), "doctype": doc.get("doctype"), "docname": doc.get("name"), "action": action, "action_link": action_link, "alert_doc_change": alert_doc_change, } template_params["pdf_link"] = get_pdf_link(doc.get("doctype"), doc.get("name")) frappe.respond_as_web_page( title=None, html=None, indicator_color="blue", template="confirm_workflow_action", context=template_params, )