cleanup customize form
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 0000000..c81bd22
--- /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 b2983b5..190996d 100644
--- a/erpnext/patches/patch_list.py
+++ b/erpnext/patches/patch_list.py
@@ -362,5 +362,10 @@
'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