From 14165671395bfe2a721bdca5bc7601cdc9e2565a Mon Sep 17 00:00:00 2001 From: Shreya Date: Thu, 25 Jan 2018 17:06:14 +0530 Subject: [PATCH] patch fix for leave-workflow --- erpnext/patches/v10_0/workflow_leave_application.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/erpnext/patches/v10_0/workflow_leave_application.py b/erpnext/patches/v10_0/workflow_leave_application.py index f2b74a35a7..8a68f891c4 100644 --- a/erpnext/patches/v10_0/workflow_leave_application.py +++ b/erpnext/patches/v10_0/workflow_leave_application.py @@ -9,4 +9,5 @@ def execute(): frappe.reload_doc("hr", "doctype", "leave_application") frappe.reload_doc("workflow", "doctype", "workflow") leave_application_workflow() - frappe.db.sql("""update `tabLeave Application` set workflow_state = status""") + if frappe.db.has_column("Leave Application", "status"): + frappe.db.sql("""update `tabLeave Application` set workflow_state = status""")