diff --git a/erpnext/patches/v10_0/workflow_leave_application.py b/erpnext/patches/v10_0/workflow_leave_application.py index 0b13a319eae..4e0d7e427db 100644 --- a/erpnext/patches/v10_0/workflow_leave_application.py +++ b/erpnext/patches/v10_0/workflow_leave_application.py @@ -8,13 +8,13 @@ def execute(): frappe.reload_doc("hr", "doctype", "leave_application") frappe.reload_doc("workflow", "doctype", "workflow") - doc = frappe.get_doc({ + frappe.get_doc({ 'doctype': 'Workflow State', 'workflow_state_name': 'Open', 'style': 'Warning' - }).insert(ignore_permissions=True) + }).insert(ignore_permissions=True) - doc = frappe.get_doc({ + frappe.get_doc({ 'doctype': 'Workflow', 'workflow_name': 'Leave Approval', 'document_type': 'Leave Application',