mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
merged deprecate account balance
This commit is contained in:
@@ -84,7 +84,6 @@ def create_proper_index():
|
||||
'Campaign': [],
|
||||
'SMS Parameter': [],
|
||||
'Leave Type': [],
|
||||
'Account Balance': ['period', 'start_date', 'end_date', 'account'],
|
||||
'Absent Days Detail': [],
|
||||
'Tag': [],
|
||||
'Raw Materials Supplied': ['raw_material'],
|
||||
@@ -102,7 +101,6 @@ def create_proper_index():
|
||||
'Appraisal Template': [],
|
||||
'Budget Distribution': ['fiscal_year'],
|
||||
'Workstation': ['warehouse'],
|
||||
'Period': [],
|
||||
'Training Session Details': [],
|
||||
'Sales Taxes and Charges Master': [],
|
||||
'State': [],
|
||||
|
||||
@@ -5,8 +5,8 @@ def execute():
|
||||
# add index
|
||||
webnotes.conn.commit()
|
||||
try:
|
||||
webnotes.conn.sql("""create index item_code_warehouse
|
||||
on `tabDelivery Note Packing Item` (item_code, warehouse)""")
|
||||
webnotes.conn.sql("""alter table `tabDelivery Note Packing Item`
|
||||
add index item_code_warehouse (item_code, warehouse)""")
|
||||
except:
|
||||
pass
|
||||
webnotes.conn.begin()
|
||||
|
||||
@@ -511,11 +511,6 @@ patch_list = [
|
||||
'patch_file': 'deprecate_bulk_rename',
|
||||
'description': "Remove Bulk Rename Tool"
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.july_2012',
|
||||
'patch_file': 'sync_trial_balance',
|
||||
'description': "sync trial balance"
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.july_2012',
|
||||
'patch_file': 'blog_guest_permission',
|
||||
@@ -604,4 +599,12 @@ patch_list = [
|
||||
'patch_module': 'patches.september_2012',
|
||||
'patch_file': 'rebuild_trees',
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.september_2012',
|
||||
'patch_file': 'deprecate_account_balance',
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.september_2012',
|
||||
'patch_file': 'profile_delete_permission',
|
||||
},
|
||||
]
|
||||
|
||||
12
patches/september_2012/deprecate_account_balance.py
Normal file
12
patches/september_2012/deprecate_account_balance.py
Normal 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")
|
||||
4
patches/september_2012/profile_delete_permission.py
Normal file
4
patches/september_2012/profile_delete_permission.py
Normal 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""")
|
||||
Reference in New Issue
Block a user