Rename Search Criteria Patch
This commit is contained in:
parent
9c6a293c5e
commit
4b80a81a2e
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
|
Loading…
Reference in New Issue
Block a user