From f609654e82b413b96a337e0d38d68a9948aeb9cd Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Wed, 8 Jun 2016 11:30:48 +0530 Subject: [PATCH] [fix] document_flow.js --- frappe/public/js/frappe/form/document_flow.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/frappe/public/js/frappe/form/document_flow.js b/frappe/public/js/frappe/form/document_flow.js index 610adb863b..70cac7b11b 100644 --- a/frappe/public/js/frappe/form/document_flow.js +++ b/frappe/public/js/frappe/form/document_flow.js @@ -20,6 +20,9 @@ frappe.ui.form.DocumentFlow = Class.extend({ render: function() { var me = this; var module = frappe.get_meta(this.frm.doctype).module + if (!frappe.document_flow[module]) { + return; + } var doctypes = frappe.document_flow[module][this.frm.doctype]; if (!doctypes) { return;