[patch] reload doctype Leave Allocation
This commit is contained in:
parent
ae4c8a6a48
commit
438c4fb279
@ -2,6 +2,7 @@ from __future__ import unicode_literals
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
frappe.reload_doctype("Leave Allocation")
|
||||||
if frappe.db.has_column("Leave Allocation", "fiscal_year"):
|
if frappe.db.has_column("Leave Allocation", "fiscal_year"):
|
||||||
for leave_allocation in frappe.db.sql("select name, fiscal_year from `tabLeave Allocation`", as_dict=True):
|
for leave_allocation in frappe.db.sql("select name, fiscal_year from `tabLeave Allocation`", as_dict=True):
|
||||||
dates = frappe.db.get_value("Fiscal Year", leave_allocation["fiscal_year"],
|
dates = frappe.db.get_value("Fiscal Year", leave_allocation["fiscal_year"],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user