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 c9ae44b387..583ced951a 100644 --- a/erpnext/patches/patch_list.py +++ b/erpnext/patches/patch_list.py @@ -367,5 +367,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' + }, ]