commit | b3943cb53aefc6eb96e0d86defbc79113fb20735 | [log] [tgz] |
---|---|---|
author | Nabin Hait <nabinhait@gmail.com> | Wed Dec 21 12:04:39 2016 +0530 |
committer | GitHub <noreply@github.com> | Wed Dec 21 12:04:39 2016 +0530 |
tree | 764544c7dcc1e64a50ce7c02f4c837bc4f8f46ad | |
parent | 0c10e3b2103b18f249cf01aff08e419c91329357 [diff] |
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'