patch fix for leave-workflow

This commit is contained in:
Shreya 2018-01-25 17:06:14 +05:30
parent 8d4e63c1fd
commit 1416567139

View File

@ -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""")