brotherton-erpnext/erpnext/patches/september_2012/deprecate_account_balance.py
2012-09-28 16:04:10 +05:30

13 lines
372 B
Python

import webnotes
from webnotes.model import delete_doc
def execute():
# remove doctypes
for dt in ["Period", "Account Balance", "Multi Ledger Report",
"Multi Ledger Report Detail", "Period Control", "Reposting Tool",
"Lease Agreement", "Lease Installment"]:
delete_doc("DocType", dt)
# remove search criteria
delete_doc("Search Criteria", "Trial Balance")