[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

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