commit | a60ceba6d45286ea264ef7d93b3db78b9b73c04e | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Fri May 27 12:44:18 2016 +0530 |
committer | Nabin Hait <nabinhait@gmail.com> | Fri May 27 12:44:18 2016 +0530 |
tree | 73716214b789ee47f9b5d86da3abdd3a5703d628 | |
parent | 5b7f6300c85f3787875c8438a56ace2dcc83c746 [diff] |
[fix] reload gl entry doctype in patch
diff --git a/erpnext/patches/v7_0/update_project_in_gl_entry.py b/erpnext/patches/v7_0/update_project_in_gl_entry.py index f183a53..7f9923b 100644 --- a/erpnext/patches/v7_0/update_project_in_gl_entry.py +++ b/erpnext/patches/v7_0/update_project_in_gl_entry.py
@@ -1,6 +1,8 @@ import frappe def execute(): + frappe.reload_doctype("GL Entry") + for doctype in ("Delivery Note", "Sales Invoice", "Stock Entry"): frappe.db.sql(""" update `tabGL Entry` gle, `tab{0}` dt