some fixes in cleanup
diff --git a/erpnext/patches/jan_mar_2012/rename_dt.py b/erpnext/patches/jan_mar_2012/rename_dt.py
index 3e56fc1..9d92fad 100644
--- a/erpnext/patches/jan_mar_2012/rename_dt.py
+++ b/erpnext/patches/jan_mar_2012/rename_dt.py
@@ -84,14 +84,10 @@
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 17bd82f..911c6a0 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 @@
'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 f134ed2..31c4aed 100644
--- a/erpnext/patches/patch_list.py
+++ b/erpnext/patches/patch_list.py
@@ -272,4 +272,9 @@
'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'
+ },
]