mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 07:29:22 +00:00
[merge]
This commit is contained in:
24
patches/june_2013/p05_remove_search_criteria_reports.py
Normal file
24
patches/june_2013/p05_remove_search_criteria_reports.py
Normal file
@@ -0,0 +1,24 @@
|
||||
# ERPNext - web based ERP (http://erpnext.com)
|
||||
# Copyright (C) 2012 Web Notes Technologies Pvt Ltd
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
from __future__ import unicode_literals
|
||||
import webnotes
|
||||
|
||||
def execute():
|
||||
try:
|
||||
webnotes.conn.sql("""delete from `tabSearch Criteria` where ifnull(standard, 'No') = 'Yes'""")
|
||||
except Exception, e:
|
||||
pass
|
||||
@@ -245,4 +245,5 @@ patch_list = [
|
||||
"patches.june_2013.p05_remove_unused_doctypes",
|
||||
"patches.june_2013.p06_drop_unused_tables",
|
||||
"patches.june_2013.p08_shopping_cart_settings",
|
||||
"patches.june_2013.p05_remove_search_criteria_reports",
|
||||
]
|
||||
@@ -22,7 +22,7 @@ def execute():
|
||||
i=0
|
||||
for d in res:
|
||||
try:
|
||||
update_entries_after({ "item_code": d[0], "warehouse": d[1] })
|
||||
update_entries_after({ "item_code": d[0], "warehouse": d[1]})
|
||||
except:
|
||||
pass
|
||||
i += 1
|
||||
|
||||
Reference in New Issue
Block a user