brotherton-erpnext/patches/october_2012/company_fiscal_year_docstatus_patch.py

7 lines
217 B
Python
Raw Normal View History

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