[patch] [minor] unsubmit serial nos if submitted

This commit is contained in:
Nabin Hait 2013-09-25 14:44:06 +05:30
parent a7687e9ab6
commit c6871dc194
2 changed files with 8 additions and 0 deletions

View File

@ -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",
]

View File

@ -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""")