Merge pull request #12652 from shreyashah115/patch-fix

Patch fix for Leave Application Workflow
This commit is contained in:
rohitwaghchaure
2018-01-25 17:08:50 +05:30
committed by GitHub

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