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
commit ec3052cc8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,4 +9,5 @@ def execute():
frappe.reload_doc("hr", "doctype", "leave_application") frappe.reload_doc("hr", "doctype", "leave_application")
frappe.reload_doc("workflow", "doctype", "workflow") frappe.reload_doc("workflow", "doctype", "workflow")
leave_application_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""")