brotherton-erpnext/erpnext/patches/v10_0/workflow_leave_application.py

13 lines
457 B
Python
Raw Normal View History

# Copyright (c) 2017, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
2018-01-24 18:21:18 +05:30
from erpnext.setup.install import leave_application_workflow
def execute():
frappe.reload_doc("hr", "doctype", "leave_application")
frappe.reload_doc("workflow", "doctype", "workflow")
2018-01-24 18:21:18 +05:30
leave_application_workflow()
frappe.db.sql("""update `tabLeave Application` set workflow_state = status""")