merged deprecate account balance

This commit is contained in:
Anand Doshi
2012-10-01 11:30:00 +05:30
52 changed files with 3540 additions and 2997 deletions

View File

@@ -0,0 +1,12 @@
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")

View File

@@ -0,0 +1,4 @@
import webnotes
def execute():
webnotes.conn.sql("""update `tabDocPerm` set cancel=1
where parent='Profile' and role in ('System Manager', 'Administrator') and permlevel=0""")