From c6871dc194a2759f6da65cc9e33864ee8ffb3dcc Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Wed, 25 Sep 2013 14:44:06 +0530 Subject: [PATCH] [patch] [minor] unsubmit serial nos if submitted --- patches/patch_list.py | 1 + patches/september_2013/p04_unsubmit_serial_nos.py | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 patches/september_2013/p04_unsubmit_serial_nos.py diff --git a/patches/patch_list.py b/patches/patch_list.py index f0a26d2016..7041ba8858 100644 --- a/patches/patch_list.py +++ b/patches/patch_list.py @@ -217,4 +217,5 @@ patch_list = [ "patches.september_2013.p03_move_website_to_framework", "execute:webnotes.bean('Style Settings').save() #2013-09-19", "execute:webnotes.conn.set_value('Accounts Settings', None, 'frozen_accounts_modifier', 'Accounts Manager') # 2013-09-24", + "patches.september_2013.p04_unsubmit_serial_nos", ] \ No newline at end of file diff --git a/patches/september_2013/p04_unsubmit_serial_nos.py b/patches/september_2013/p04_unsubmit_serial_nos.py new file mode 100644 index 0000000000..ded4e4ded5 --- /dev/null +++ b/patches/september_2013/p04_unsubmit_serial_nos.py @@ -0,0 +1,7 @@ +# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. +# License: GNU General Public License v3. See license.txt + +from __future__ import unicode_literals +import webnotes +def execute(): + webnotes.conn.sql("""update `tabSerial No` set docstatus=0 where docstatus=1""") \ No newline at end of file