2012-11-01 06:41:16 +00:00
|
|
|
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`"""):
|
2012-11-01 06:50:13 +00:00
|
|
|
if insert_after:
|
|
|
|
new_insert_after = regex.sub("", insert_after)
|
|
|
|
webnotes.conn.set_value("Custom Field", name, "insert_after", new_insert_after)
|
2012-11-01 06:41:16 +00:00
|
|
|
|