brotherton-erpnext/patches/february_2013/account_negative_balance.py

4 lines
159 B
Python

def execute():
import webnotes
webnotes.reload_doc("accounts", "doctype", "Account")
webnotes.conn.sql("update `tabAccount` set allow_negative_balance = 1")