patch: add reload doc for leave ledger entry

This commit is contained in:
Mangesh-Khairnar 2019-05-28 11:45:51 +05:30
parent c6d6adcbf3
commit 9d6151d200

View File

@ -7,6 +7,7 @@ import frappe
def execute():
""" Generates leave ledger entries for leave allocation/application/encashment
for last allocation """
frappe.reload_doc("HR","doctype", "Leave Ledger Entry")
if frappe.db.a_row_exists("Leave Ledger Entry"):
return