brotherton-erpnext/patches/june_2013/p05_remove_search_criteria_reports.py

11 lines
317 B
Python
Raw Normal View History

# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
# License: GNU General Public License v3. See license.txt
2012-02-23 07:05:32 +00:00
from __future__ import unicode_literals
import webnotes
def execute():
2013-06-24 10:17:02 +00:00
try:
webnotes.conn.sql("""delete from `tabSearch Criteria` where ifnull(standard, 'No') = 'Yes'""")
except Exception, e:
pass