brotherton-erpnext/erpnext/patches/auto_indent.py
2011-12-21 11:56:42 +05:30

8 lines
360 B
Python

def execute():
import webnotes
from webnotes.modules.module_manager import reload_doc
reload_doc('setup', 'doctype', 'manage_account')
reload_doc('stock', 'doctype', 'item')
webnotes.conn.sql("alter table `tabItem` drop column `minimum_inventory_level`")
webnotes.conn.sql("update `tabItem` set re_order_level = ifnull(re_order_level,min_order_qty) ")