brotherton-erpnext/patches/jan_mar_2012/stock_entry_others_patch.py
2012-09-24 19:13:42 +05:30

8 lines
301 B
Python

from __future__ import unicode_literals
def execute():
import webnotes
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'")