[fix] Reload SO Item in patch

This commit is contained in:
Nabin Hait 2015-12-09 17:06:09 +05:30
parent b1caeba0b4
commit 5d39a9594d

View File

@ -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])