Update repost_stock_for_deleted_bins_for_merging_items.py
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 5c63c00..d1974d2 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 @@
 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'