[patch] reload doctype Leave Allocation
diff --git a/erpnext/patches/v6_6/remove_fiscal_year_from_leave_allocation.py b/erpnext/patches/v6_6/remove_fiscal_year_from_leave_allocation.py
index b150173..11c582f 100644
--- a/erpnext/patches/v6_6/remove_fiscal_year_from_leave_allocation.py
+++ b/erpnext/patches/v6_6/remove_fiscal_year_from_leave_allocation.py
@@ -2,6 +2,7 @@
import frappe
def execute():
+ frappe.reload_doctype("Leave Allocation")
if frappe.db.has_column("Leave Allocation", "fiscal_year"):
for leave_allocation in frappe.db.sql("select name, fiscal_year from `tabLeave Allocation`", as_dict=True):
dates = frappe.db.get_value("Fiscal Year", leave_allocation["fiscal_year"],