Merge branch 'master' of github.com:webnotes/erpnext

This commit is contained in:
Nabin Hait 2012-11-01 16:53:56 +05:30
commit 9c968f339b
3 changed files with 17 additions and 1 deletions

View File

View File

@ -0,0 +1,12 @@
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`"""):
if insert_after:
new_insert_after = regex.sub("", insert_after)
webnotes.conn.set_value("Custom Field", name, "insert_after", new_insert_after)

View File

@ -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',
},
]