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}):