From 6e9a1284d49e1cf79729411da2dfb0a75b5d68d2 Mon Sep 17 00:00:00 2001 From: Nabin Hait Date: Thu, 15 Dec 2011 15:48:18 +0530 Subject: [PATCH] remove depricated default fileds --- erpnext/patches/patch.py | 2 +- erpnext/patches/remove_page_break_from_defaults.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/erpnext/patches/patch.py b/erpnext/patches/patch.py index 7e8a083d4d..97179caa6d 100644 --- a/erpnext/patches/patch.py +++ b/erpnext/patches/patch.py @@ -5,7 +5,7 @@ last_patch = 388 #------------------------------------------- -def execute(patch_no): +def execute_depricated(patch_no): import webnotes from webnotes.modules.module_manager import reload_doc diff --git a/erpnext/patches/remove_page_break_from_defaults.py b/erpnext/patches/remove_page_break_from_defaults.py index b565e93c73..8d842e3b73 100644 --- a/erpnext/patches/remove_page_break_from_defaults.py +++ b/erpnext/patches/remove_page_break_from_defaults.py @@ -1,5 +1,3 @@ def execute(): import webnotes - webnotes.conn.sql("""\ - DELETE FROM `tabDefaultValue` - WHERE parent='Control Panel' AND defkey='page_break'""") + webnotes.conn.sql("""delete from `tabDefaultValue` where defkey in ('page_break', 'projects', 'packing_details', 'discounts', 'brands', 'item_batch_nos', 'after_sales_installations', 'item_searial_nos', 'item_group_in_details', 'exports', 'imports', 'item_advanced', 'sales_extras', 'more_info', 'quality', 'manufacturing', 'pos', 'item_serial_nos', 'purchase_discounts', 'recurring_invoice') and parent = 'Control Panel'""")