brotherton-erpnext/patches/october_2012/company_fiscal_year_docstatus_patch.py

10 lines
348 B
Python
Raw Normal View History

2013-11-20 07:29:58 +00:00
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import webnotes
def execute():
webnotes.conn.sql("""update `tabCompany` set docstatus = 0
where docstatus is null""")
webnotes.conn.sql("""update `tabFiscal Year` set docstatus = 0
where docstatus is null""")