fixes in remove_gl_mapper patch

This commit is contained in:
Nabin Hait 2013-02-01 12:38:15 +05:30
parent cc9528c8e2
commit 259a55676b

View File

@ -1,5 +1,4 @@
def execute():
import webnotes
from webnotes.model.doc import delete_doc
for mapper in webnotes.conn.sql("""select name from `tabGL Mapper`"""):
delete_doc("GL Mapper", mapper[0])
webnotes.delete_doc("GL Mapper", mapper[0])