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

7 lines
267 B
Python
Raw Normal View History

2012-03-21 10:26:22 +00:00
def execute():
import webnotes
webnotes.conn.sql("update `tabDocField` set options = 'Bill Of Materials' where fieldname = 'bom_no' and parent = 'Stock Entry'")
2012-03-21 10:32:44 +00:00
from webnotes.modules.module_manager import reload_doc
reload_doc('stock', 'doctype', 'stock_entry')