brotherton-erpnext/erpnext/patches/jan_mar_2012/update_se_fld_options.py
2012-04-02 14:06:46 +05:30

7 lines
238 B
Python

def execute():
import webnotes
webnotes.conn.sql("update `tabDocField` set options = 'BOM' where fieldname = 'bom_no' and parent = 'Stock Entry'")
from webnotes.modules import reload_doc
reload_doc('stock', 'doctype', 'stock_entry')