patch: add reload doc for leave ledger entry
This commit is contained in:
parent
c6d6adcbf3
commit
9d6151d200
@ -7,6 +7,7 @@ import frappe
|
|||||||
def execute():
|
def execute():
|
||||||
""" Generates leave ledger entries for leave allocation/application/encashment
|
""" Generates leave ledger entries for leave allocation/application/encashment
|
||||||
for last allocation """
|
for last allocation """
|
||||||
|
frappe.reload_doc("HR","doctype", "Leave Ledger Entry")
|
||||||
if frappe.db.a_row_exists("Leave Ledger Entry"):
|
if frappe.db.a_row_exists("Leave Ledger Entry"):
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user