some fixes in cleanup

This commit is contained in:
Nabin Hait 2012-04-23 16:03:38 +05:30
parent 51834a45a7
commit 708917db50
3 changed files with 9 additions and 8 deletions

View File

@ -84,14 +84,10 @@ def execute():
reload_doc('accounts', 'GL Mapper', d[0])
reload_doc('accounts', 'GL Mapper', 'Purchase Invoice with write off')
webnotes.conn.sql("update `tabDocType` set module = 'Utilities' where module = 'Knowledge Base'")
webnotes.conn.sql("update `tabPage` set module = 'Utilities' where module = 'Knowledge Base'")
#gl entry, stock ledger entry,
# T0-do-list
# gl mapper name
def delete_search_criteria():
webnotes.conn.sql("""DELETE FROM `tabSearch Criteria`

View File

@ -18,15 +18,15 @@ def execute():
'Setup Wizard Control', 'Company Group', 'Lease Agreement', 'Lease Installment',
'Terms and Conditions', 'Time Sheet', 'Time Sheet Detail', 'Naming Series Options',
'Invest 80 Declaration Detail', 'IT Checklist', 'Chapter VI A Detail', 'Declaration Detail',
'Personalize', 'Salary Slip Control Panel',
'Personalize', 'Salary Slip Control Panel', 'Question Control'
],
'Page' : ['File Browser', 'Bill of Materials'],
'DocType Mapper': ['Production Forecast-Production Planning Tool', 'Production Forecast-Production Plan', 'Sales Order-Production Plan'],
'Module Def': ['Knowledge Base']
}
for d in del_rec:
for r in del_rec[d]:
print 'Deleted', d, ' - ', r
if d=='DocType':
sql("delete from tabFeed where doc_type=%s", r)
delete_doc(d, r)

View File

@ -272,4 +272,9 @@ patch_list = [
'patch_file': 'naming_series_patch',
'description': 'Move naming series options into property setter'
},
{
'patch_module': 'patches.april_2012',
'patch_file': 'after_sync_cleanup',
'description': 'cleanup after sync'
},
]