brotherton-erpnext/patches/april_2012/after_sync_cleanup.py

7 lines
259 B
Python
Raw Normal View History

from __future__ import unicode_literals
2012-04-23 16:04:16 +05:30
def execute():
import webnotes
from webnotes.model import delete_doc
2012-04-26 13:13:10 +05:30
webnotes.conn.sql("update `tabDocType` set module = 'Utilities' where name in ('Question', 'Answer')")
2012-04-23 16:04:16 +05:30
delete_doc('Module Def', 'Knowledge Base')