From 518090f38e5f5c8801a4ecf98a8e04560b296696 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 5 Sep 2012 13:26:53 +0530 Subject: [PATCH] autocommit for repost stock due to wrong packing list patch --- .../patches/july_2012/repost_stock_due_to_wrong_packing_list.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/erpnext/patches/july_2012/repost_stock_due_to_wrong_packing_list.py b/erpnext/patches/july_2012/repost_stock_due_to_wrong_packing_list.py index be4d4502e6..ac64f42217 100644 --- a/erpnext/patches/july_2012/repost_stock_due_to_wrong_packing_list.py +++ b/erpnext/patches/july_2012/repost_stock_due_to_wrong_packing_list.py @@ -10,8 +10,10 @@ def execute(): pass webnotes.conn.begin() + webnotes.conn.auto_commit_on_many_writes = 1 repost_reserved_qty() cleanup_wrong_sle() + webnotes.conn.auto_commit_on_many_writes = 0 def repost_reserved_qty(): from webnotes.utils import flt