brotherton-erpnext/erpnext/patches/auto_indent.py

8 lines
360 B
Python
Raw Normal View History

def execute():
import webnotes
from webnotes.modules.module_manager import reload_doc
2011-12-21 06:20:20 +00:00
reload_doc('setup', 'doctype', 'manage_account')
reload_doc('stock', 'doctype', 'item')
2011-12-21 06:26:42 +00:00
webnotes.conn.sql("alter table `tabItem` drop column `minimum_inventory_level`")
2011-12-21 06:20:20 +00:00
webnotes.conn.sql("update `tabItem` set re_order_level = ifnull(re_order_level,min_order_qty) ")