From 227e9d3ac6ffb778e9277f7aff422bccd7a2cc5c Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 18 May 2012 16:55:20 +0530 Subject: [PATCH] cleanup customize form --- erpnext/patches/may_2012/customize_form_cleanup.py | 5 +++++ erpnext/patches/patch_list.py | 5 +++++ 2 files changed, 10 insertions(+) create mode 100644 erpnext/patches/may_2012/customize_form_cleanup.py diff --git a/erpnext/patches/may_2012/customize_form_cleanup.py b/erpnext/patches/may_2012/customize_form_cleanup.py new file mode 100644 index 0000000000..c81bd2240d --- /dev/null +++ b/erpnext/patches/may_2012/customize_form_cleanup.py @@ -0,0 +1,5 @@ +def execute(): + import webnotes + webnotes.conn.sql("delete from `tabCustomize Form Field`") + webnotes.conn.sql("""delete from `tabSingles` + where doctype='Customize Form'""") \ No newline at end of file diff --git a/erpnext/patches/patch_list.py b/erpnext/patches/patch_list.py index b2983b52bc..190996d6a7 100644 --- a/erpnext/patches/patch_list.py +++ b/erpnext/patches/patch_list.py @@ -362,5 +362,10 @@ patch_list = [ 'patch_file': 'reload_so_pending_items', 'description': 'reload so pending items' }, + { + 'patch_module': 'patches.may_2012', + 'patch_file': 'customize_form_cleanup', + 'description': 'cleanup customize form records' + }, ] \ No newline at end of file