brotherton-erpnext/patches/february_2013/account_negative_balance.py

7 lines
273 B
Python

# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
# License: GNU General Public License v3. See license.txt
def execute():
import webnotes
webnotes.reload_doc("accounts", "doctype", "account")
webnotes.conn.sql("update `tabAccount` set allow_negative_balance = 1")