From 5f264fa3646e17833af3d8c5e0d0e909812d42a3 Mon Sep 17 00:00:00 2001 From: Shreya Date: Wed, 24 Jan 2018 20:39:30 +0530 Subject: [PATCH] fixes --- erpnext/setup/install.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/erpnext/setup/install.py b/erpnext/setup/install.py index 1c646101b21..2cc280ff67e 100644 --- a/erpnext/setup/install.py +++ b/erpnext/setup/install.py @@ -31,6 +31,13 @@ def leave_application_workflow(): 'style': style }).insert(ignore_permissions=True) + for action in ['Approve', 'Reject']: + if not frappe.db.exists("Workflow Action", action): + frappe.get_doc({ + 'doctype': 'Workflow Action', + 'workflow_action_name': action + }).insert(ignore_permissions=True) + if not frappe.db.exists("Workflow", "Leave Approval"): frappe.get_doc({ 'doctype': 'Workflow',