mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 22:18:27 +00:00
Rename Search Criteria Patch
This commit is contained in:
9
erpnext/patches/old_patches/rename_search_criteria.py
Normal file
9
erpnext/patches/old_patches/rename_search_criteria.py
Normal file
@@ -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
|
||||
Reference in New Issue
Block a user