From 7041a4529428d1e082628e93ee6996597f9747fa Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 28 Mar 2018 15:50:14 +0530 Subject: [PATCH] Update fix_reserved_qty_for_sub_contract.py --- erpnext/patches/v10_0/fix_reserved_qty_for_sub_contract.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/patches/v10_0/fix_reserved_qty_for_sub_contract.py b/erpnext/patches/v10_0/fix_reserved_qty_for_sub_contract.py index 5d025374ed..ded44e8399 100644 --- a/erpnext/patches/v10_0/fix_reserved_qty_for_sub_contract.py +++ b/erpnext/patches/v10_0/fix_reserved_qty_for_sub_contract.py @@ -6,6 +6,7 @@ import frappe from erpnext.stock.utils import get_bin def execute(): + frappe.reload_doc("stock", "doctype", "bin") frappe.reload_doc("buying", "doctype", "purchase_order_item_supplied") for d in frappe.db.sql(""" select distinct rm_item_code, reserve_warehouse