replace createLocal in Client script only

This commit is contained in:
Anand Doshi 2012-12-13 19:35:32 +05:30
parent 0f8c67d776
commit 72d2a627f5

View File

@ -1,4 +1,5 @@
def execute():
import webnotes
webnotes.conn.sql("""update `tabCustom Script`
set script = replace(script, 'createLocal', 'wn.model.make_new_doc_and_get_name')""")
set script = replace(script, 'createLocal', 'wn.model.make_new_doc_and_get_name')
where script_type='Client'""")