brotherton-erpnext/patches/august_2013/p05_update_serial_no_status.py

5 lines
233 B
Python

import webnotes
def execute():
webnotes.conn.sql("""update `tabSerial No` set status = 'Not Available' where status='Not In Store'""")
webnotes.conn.sql("""update `tabSerial No` set status = 'Available' where status='In Store'""")