From 96333b6bc77e137130d8af6501b0c518d333403a Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 24 Oct 2013 17:41:52 +0530 Subject: [PATCH] [minor] try block in serial no status patch --- patches/october_2013/p01_fix_serial_no_status.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/october_2013/p01_fix_serial_no_status.py b/patches/october_2013/p01_fix_serial_no_status.py index 4d0dc4ba50..9f58593c26 100644 --- a/patches/october_2013/p01_fix_serial_no_status.py +++ b/patches/october_2013/p01_fix_serial_no_status.py @@ -3,7 +3,6 @@ from __future__ import unicode_literals import webnotes -from webnotes.utils import flt def execute(): serial_nos = webnotes.conn.sql("""select name from `tabSerial No` where status!='Not in Use' @@ -14,6 +13,7 @@ def execute(): sr_bean.make_controller().via_stock_ledger = True sr_bean.run_method("validate") sr_bean.save() + webnotes.conn.commit() except: pass