Rename Search Criteria Patch
diff --git a/erpnext/patches/old_patches/rename_search_criteria.py b/erpnext/patches/old_patches/rename_search_criteria.py
new file mode 100644
index 0000000..e64db03
--- /dev/null
+++ b/erpnext/patches/old_patches/rename_search_criteria.py
@@ -0,0 +1,9 @@
+import webnotes
+from webnotes.model.code import get_obj
+def execute():
+ for sc in webnotes.conn.sql("""select name from `tabSearch Criteria` where ifnull(name,'')
+ like 'srch%' or ifnull(name,'') like '%stdsrch'"""):
+ try:
+ get_obj('Search Criteria', sc[0]).rename()
+ except AttributeError, e:
+ pass