This commit is contained in:
Rushabh Mehta
2013-06-24 15:47:02 +05:30
28 changed files with 289 additions and 252 deletions

View 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

View File

@@ -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",
]

View File

@@ -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