brotherton-erpnext/patches/january_2013/change_patch_structure.py
2013-01-17 18:22:22 +05:30

12 lines
294 B
Python

import webnotes
def execute():
webnotes.reload_doc("core", "doctype", "patch_log")
for d in webnotes.conn.sql("""select patch from __PatchLog"""):
webnotes.doc({
"doctype": "Patch Log",
"patch": d[0]
}).insert()
webnotes.conn.commit()
webnotes.conn.sql("drop table __PatchLog")