From 13f61552dc53e8678b68542d8f837f2d03d92fb6 Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Thu, 9 Jun 2011 17:32:32 +0530 Subject: [PATCH] patch to remove my_company and event_updates --- home/page/profile_settings/profile_settings.html | 0 patches/patch.py | 14 +++++++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 home/page/profile_settings/profile_settings.html diff --git a/home/page/profile_settings/profile_settings.html b/home/page/profile_settings/profile_settings.html new file mode 100644 index 0000000000..e69de29bb2 diff --git a/patches/patch.py b/patches/patch.py index 0ab691274e..9b9255b6cc 100644 --- a/patches/patch.py +++ b/patches/patch.py @@ -1,6 +1,6 @@ # REMEMBER to update this # ======================== -last_patch = 276 +last_patch = 277 #------------------------------------------- @@ -1097,3 +1097,15 @@ def execute(patch_no): for d in sn: delete_doc('Search Criteria', d[0]) reload_doc('crm', 'search_criteria', 'sales_personwise_transaction_summary') + elif patch_no == 277: + webnotes.model.delete_doc('DocType','HomePage Settings') + webnotes.model.delete_doc('DocType','Badge Settings') + sql("update tabDocType set module='Home' where module in ('Event Updates', 'My Company')") + sql("update tabPage set module='Home' where module in ('Event Updates', 'My Company')") + sql("update `tabSearch Criteria` set module='Home' where module in ('Event Updates', 'My Company')") + + + delete_pages = ('Chat User Gallery', 'Badge Info', 'Home', 'Website Setup', 'Test Page', 'Setup Masters', 'Service', 'Selling', 'Sales Reports', 'Organize','My Cart', 'My Activity', 'Manage Users', 'Maintenance', 'Getting Started', 'Gantt Test', 'Custom Reports - Stock', 'Custom Reports - Selling', 'Custom Reports - Production', 'Custom Reports - Payroll', 'Custom Reports - Maintenance', 'Custom Reports - Buying', 'Custom Reports - Accounts', 'CRM Setup', 'CRM Reports') + for p in delete_pages: + webnotes.model.delete_doc('Page',p) + \ No newline at end of file