diff --git a/utilities/repost_stock.py b/utilities/repost_stock.py index e2ecdeeb9b..136a7620b5 100644 --- a/utilities/repost_stock.py +++ b/utilities/repost_stock.py @@ -16,7 +16,7 @@ def repost(): for d in webnotes.conn.sql("""select distinct item_code, warehouse from (select item_code, warehouse from tabBin union - select item_code, warehouse from `tabStock Ledger Entry`)"""): + select item_code, warehouse from `tabStock Ledger Entry`) a"""): repost_stock(d[0], d[1]) webnotes.conn.auto_commit_on_many_writes = 0