diff --git a/erpnext/patches/jan_mar_2012/rename_dt.py b/erpnext/patches/jan_mar_2012/rename_dt.py index 3e56fc10827..9d92fadffb5 100644 --- a/erpnext/patches/jan_mar_2012/rename_dt.py +++ b/erpnext/patches/jan_mar_2012/rename_dt.py @@ -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` diff --git a/erpnext/patches/jan_mar_2012/sync_ref_db.py b/erpnext/patches/jan_mar_2012/sync_ref_db.py index 17bd82f7a3b..911c6a07ca4 100644 --- a/erpnext/patches/jan_mar_2012/sync_ref_db.py +++ b/erpnext/patches/jan_mar_2012/sync_ref_db.py @@ -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) diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py index f134ed2133a..31c4aedc8a9 100644 --- a/erpnext/patches/patch_list.py +++ b/erpnext/patches/patch_list.py @@ -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' + }, ]