mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-19 23:05:12 +00:00
[fix] [hot] reload doctype Holiday List
This commit is contained in:
@@ -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"]):
|
||||
|
||||
Reference in New Issue
Block a user