some fixes in cleanup
This commit is contained in:
parent
51834a45a7
commit
708917db50
@ -84,14 +84,10 @@ def execute():
|
|||||||
reload_doc('accounts', 'GL Mapper', d[0])
|
reload_doc('accounts', 'GL Mapper', d[0])
|
||||||
reload_doc('accounts', 'GL Mapper', 'Purchase Invoice with write off')
|
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():
|
def delete_search_criteria():
|
||||||
webnotes.conn.sql("""DELETE FROM `tabSearch Criteria`
|
webnotes.conn.sql("""DELETE FROM `tabSearch Criteria`
|
||||||
|
|||||||
@ -18,15 +18,15 @@ def execute():
|
|||||||
'Setup Wizard Control', 'Company Group', 'Lease Agreement', 'Lease Installment',
|
'Setup Wizard Control', 'Company Group', 'Lease Agreement', 'Lease Installment',
|
||||||
'Terms and Conditions', 'Time Sheet', 'Time Sheet Detail', 'Naming Series Options',
|
'Terms and Conditions', 'Time Sheet', 'Time Sheet Detail', 'Naming Series Options',
|
||||||
'Invest 80 Declaration Detail', 'IT Checklist', 'Chapter VI A Detail', 'Declaration Detail',
|
'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'],
|
'Page' : ['File Browser', 'Bill of Materials'],
|
||||||
'DocType Mapper': ['Production Forecast-Production Planning Tool', 'Production Forecast-Production Plan', 'Sales Order-Production Plan'],
|
'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 d in del_rec:
|
||||||
for r in del_rec[d]:
|
for r in del_rec[d]:
|
||||||
|
print 'Deleted', d, ' - ', r
|
||||||
if d=='DocType':
|
if d=='DocType':
|
||||||
sql("delete from tabFeed where doc_type=%s", r)
|
sql("delete from tabFeed where doc_type=%s", r)
|
||||||
delete_doc(d, r)
|
delete_doc(d, r)
|
||||||
|
|||||||
@ -272,4 +272,9 @@ patch_list = [
|
|||||||
'patch_file': 'naming_series_patch',
|
'patch_file': 'naming_series_patch',
|
||||||
'description': 'Move naming series options into property setter'
|
'description': 'Move naming series options into property setter'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
'patch_module': 'patches.april_2012',
|
||||||
|
'patch_file': 'after_sync_cleanup',
|
||||||
|
'description': 'cleanup after sync'
|
||||||
|
},
|
||||||
]
|
]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user