Merge branch 'master' of github.com:webnotes/erpnext
This commit is contained in:
commit
d9317b9993
0
patches/november_2012/__init__.py
Normal file
0
patches/november_2012/__init__.py
Normal file
11
patches/november_2012/custom_field_insert_after.py
Normal file
11
patches/november_2012/custom_field_insert_after.py
Normal file
@ -0,0 +1,11 @@
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
import re
|
||||
regex = re.compile("\s-\s[\d\.]*")
|
||||
|
||||
for name, insert_after in webnotes.conn.sql("""select name, insert_after
|
||||
from `tabCustom Field`"""):
|
||||
new_insert_after = regex.sub("", insert_after)
|
||||
webnotes.conn.set_value("Custom Field", name, "insert_after", new_insert_after)
|
||||
|
@ -642,5 +642,9 @@ patch_list = [
|
||||
{
|
||||
'patch_module': 'patches.october_2012',
|
||||
'patch_file': 'custom_script_delete_permission',
|
||||
}
|
||||
},
|
||||
{
|
||||
'patch_module': 'patches.november_2012',
|
||||
'patch_file': 'custom_field_insert_after',
|
||||
},
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user