brotherton-erpnext/patches/jan_mar_2012/update_purpose_se.py

5 lines
220 B
Python
Raw Normal View History

from __future__ import unicode_literals
2012-03-21 05:32:50 +00:00
def execute():
import webnotes
webnotes.conn.sql("update `tabDocField` set options = replace(options, 'Others', 'Other') where fieldname = 'purpose' and parent = 'Stock Entry'")