brotherton-erpnext/patches/february_2013/remove_gl_mapper.py

7 lines
187 B
Python

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