[hotfix] reload Sales and Purchase Order Item

This commit is contained in:
Anand Doshi 2015-08-26 17:42:31 +05:30
parent 2b6bdc1edb
commit cb2f9a863d

View File

@ -5,6 +5,9 @@ from __future__ import unicode_literals
import frappe
def execute():
frappe.reload_doctype("Sales Order Item")
frappe.reload_doctype("Purchase Order Item")
# sales return
return_entries = list(frappe.db.sql("""
select dn.name as name, dn_item.name as row_id, dn.return_against,