diff --git a/erpnext/patches/v6_10/fix_delivery_status_of_drop_ship_item.py b/erpnext/patches/v6_10/fix_delivery_status_of_drop_ship_item.py index 23de9d0520..9a53b7f5d3 100644 --- a/erpnext/patches/v6_10/fix_delivery_status_of_drop_ship_item.py +++ b/erpnext/patches/v6_10/fix_delivery_status_of_drop_ship_item.py @@ -2,6 +2,7 @@ from __future__ import unicode_literals import frappe def execute(): + frappe.reload_doctype("Sales Order Item") for so_name in frappe.db.sql("""select distinct parent from `tabSales Order Item` where delivered_by_supplier=1 and docstatus=1"""): so = frappe.get_doc("Sales Order", so_name[0])