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

7 lines
261 B
Python
Raw Normal View History

def execute():
import webnotes
2012-04-02 08:36:46 +00:00
from webnotes.modules import reload_doc
reload_doc('stock', 'doctype', 'stock_entry')
webnotes.conn.sql("update `tabDocField` set options = concat(options, '\nOthers') where fieldname = 'purpose' and parent = 'Stock Entry'")