brotherton-erpnext/erpnext/patches/jan_mar_2012/reload_item.py

7 lines
201 B
Python

def execute():
import webnotes
from webnotes.modules.module_manager import reload_doc
reload_doc('stock', 'doctype', 'item')
webnotes.conn.sql("update `tabItem` set re_order_qty = min_order_qty")