[fix] reload gl entry doctype in patch

This commit is contained in:
Nabin Hait 2016-05-27 12:44:18 +05:30
parent 5b7f6300c8
commit a60ceba6d4

View File

@ -1,6 +1,8 @@
import frappe import frappe
def execute(): def execute():
frappe.reload_doctype("GL Entry")
for doctype in ("Delivery Note", "Sales Invoice", "Stock Entry"): for doctype in ("Delivery Note", "Sales Invoice", "Stock Entry"):
frappe.db.sql(""" frappe.db.sql("""
update `tabGL Entry` gle, `tab{0}` dt update `tabGL Entry` gle, `tab{0}` dt