diff --git a/erpnext/patches/v6_20x/remove_fiscal_year_from_holiday_list.py b/erpnext/patches/v6_20x/remove_fiscal_year_from_holiday_list.py index c8c62036e2d..d440c6859e3 100644 --- a/erpnext/patches/v6_20x/remove_fiscal_year_from_holiday_list.py +++ b/erpnext/patches/v6_20x/remove_fiscal_year_from_holiday_list.py @@ -2,6 +2,8 @@ from __future__ import unicode_literals import frappe def execute(): + frappe.reload_doctype("Holiday List") + default_holiday_list = frappe.db.get_value("Holiday List", {"is_default": 1}) if default_holiday_list: for company in frappe.get_all("Company", fields=["name", "default_holiday_list"]):