Merge pull request #4456 from nabinhait/drop_ship_fix1
[fix] Reload SO Item in patch
This commit is contained in:
commit
cff91abd8d
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user