From 147b288d66bb2fe16085d38c2ce5fb5f40785f3f Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Fri, 23 Sep 2016 13:11:05 +0530 Subject: [PATCH] Update repost_gle_for_pos_sales_return.py --- erpnext/patches/v7_0/repost_gle_for_pos_sales_return.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/patches/v7_0/repost_gle_for_pos_sales_return.py b/erpnext/patches/v7_0/repost_gle_for_pos_sales_return.py index d3dd2e9aa6..77ecafd6f1 100644 --- a/erpnext/patches/v7_0/repost_gle_for_pos_sales_return.py +++ b/erpnext/patches/v7_0/repost_gle_for_pos_sales_return.py @@ -7,6 +7,7 @@ from frappe.utils import cint, flt def execute(): frappe.reload_doctype("Sales Invoice") + frappe.reload_doctype("Sales Invoice Item") for si in frappe.get_all("Sales Invoice", fields = ["name"], filters={"docstatus": 1, "is_pos": 1, "is_return": 1}):