remove depricated default fileds

This commit is contained in:
Nabin Hait 2011-12-15 15:48:18 +05:30
parent ca39b180f5
commit 6e9a1284d4
2 changed files with 2 additions and 4 deletions

View File

@ -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

View File

@ -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'""")