From f319206d22b87f44663c359c619ad49b0c56be77 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 11 Mar 2016 19:45:28 +0530 Subject: [PATCH] [fix] [hot] reload doctype Holiday List --- erpnext/patches/v6_20x/remove_fiscal_year_from_holiday_list.py | 2 ++ 1 file changed, 2 insertions(+) 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"]):