Reload PO Item before patch

This commit is contained in:
Nabin Hait 2015-11-19 12:46:37 +05:30
parent 0f72750fc8
commit 06df19b56a

View File

@ -1,6 +1,7 @@
import frappe
def execute():
frappe.reload_doctype("Purchase Order Item")
for po in frappe.get_all("Purchase Order", filters={"delivered_by_supplier": 1}, fields=["name"]):
purchase_order = frappe.get_doc("Purchase Order", po)
@ -33,4 +34,4 @@ def update_per_billed(po):
where parent = %(name)s), 2)
where name = %(name)s """, {"name": po.name})