brotherton-erpnext/patches/1401/enable_all_price_list.py
2014-01-20 16:39:03 +05:30

9 lines
320 B
Python

# Copyright (c) 2014, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import webnotes
def execute():
webnotes.reload_doc("stock", "doctype", "price_list")
webnotes.conn.sql("""update `tabPrice List` set enabled=1""")