mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-19 13:09:17 +00:00
[fix] reload Leave Period and Staffing Plan doctypes
This commit is contained in:
@@ -2,7 +2,9 @@ import frappe
|
|||||||
from frappe.utils.nestedset import rebuild_tree
|
from frappe.utils.nestedset import rebuild_tree
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
frappe.reload_doc("hr", "doctype", "department")
|
for doctype in ['department', 'leave_period', 'staffing_plan']:
|
||||||
|
frappe.reload_doc("hr", "doctype", doctype)
|
||||||
|
|
||||||
companies = frappe.db.get_all("Company", fields=["name", "abbr"])
|
companies = frappe.db.get_all("Company", fields=["name", "abbr"])
|
||||||
departments = frappe.db.get_all("Department")
|
departments = frappe.db.get_all("Department")
|
||||||
comp_dict = {}
|
comp_dict = {}
|
||||||
|
|||||||
Reference in New Issue
Block a user