mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-20 05:29:18 +00:00
replace createLocal in Client script only
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
def execute():
|
def execute():
|
||||||
import webnotes
|
import webnotes
|
||||||
webnotes.conn.sql("""update `tabCustom Script`
|
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'""")
|
||||||
Reference in New Issue
Block a user