brotherton-erpnext/patches/december_2012/update_print_width.py

8 lines
266 B
Python

# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
# License: GNU General Public License v3. See license.txt
import webnotes
def execute():
webnotes.reload_doc("core", "doctype", "docfield")
webnotes.conn.sql("""update tabDocField set print_width = width""")