brotherton-erpnext/patches/february_2013/remove_gl_mapper.py

10 lines
318 B
Python
Raw Normal View History

2013-11-20 07:29:58 +00:00
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
def execute():
import webnotes
try:
for mapper in webnotes.conn.sql("""select name from `tabGL Mapper`"""):
webnotes.delete_doc("GL Mapper", mapper[0])
except Exception, e:
pass