From b3943cb53aefc6eb96e0d86defbc79113fb20735 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 21 Dec 2016 12:04:39 +0530 Subject: [PATCH] Update repost_stock_for_deleted_bins_for_merging_items.py --- .../v7_1/repost_stock_for_deleted_bins_for_merging_items.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/patches/v7_1/repost_stock_for_deleted_bins_for_merging_items.py b/erpnext/patches/v7_1/repost_stock_for_deleted_bins_for_merging_items.py index 5c63c007adf..d1974d232c2 100644 --- a/erpnext/patches/v7_1/repost_stock_for_deleted_bins_for_merging_items.py +++ b/erpnext/patches/v7_1/repost_stock_for_deleted_bins_for_merging_items.py @@ -3,6 +3,8 @@ import frappe from erpnext.stock.stock_balance import repost_stock def execute(): + frappe.reload_doc('manufacturing', 'doctype', 'production_order_item') + modified_items = frappe.db.sql_list(""" select name from `tabItem` where is_stock_item=1 and modified >= '2016-10-31'