Merge pull request #4456 from nabinhait/drop_ship_fix1

[fix] Reload SO Item in patch
This commit is contained in:
Nabin Hait 2015-12-09 17:06:54 +05:30
commit cff91abd8d

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