fix(patch): Reload Leave Type (#19240)

This commit is contained in:
sahil28297
2019-10-04 16:24:53 +05:30
committed by Nabin Hait
parent d5067b4d73
commit 2caf32d421

View File

@@ -10,6 +10,7 @@ def execute():
for last allocation """ for last allocation """
frappe.reload_doc("HR", "doctype", "Leave Ledger Entry") frappe.reload_doc("HR", "doctype", "Leave Ledger Entry")
frappe.reload_doc("HR", "doctype", "Leave Encashment") frappe.reload_doc("HR", "doctype", "Leave Encashment")
frappe.reload_doc("HR", "doctype", "Leave Type")
if frappe.db.a_row_exists("Leave Ledger Entry"): if frappe.db.a_row_exists("Leave Ledger Entry"):
return return