brotherton-erpnext/patches/december_2012/replace_createlocal.py
2012-12-13 18:36:49 +05:30

4 lines
168 B
Python

def execute():
import webnotes
webnotes.conn.sql("""update `tabCustom Script`
set script = replace(script, 'createLocal', 'wn.model.make_new_doc_and_get_name')""")