[fix] [hot] reload doctype Holiday List

This commit is contained in:
Anand Doshi 2016-03-11 19:45:28 +05:30
parent a7aa2c70b5
commit f319206d22

View File

@ -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"]):