diff --git a/patches/may_2013/p06_make_notes.py b/patches/may_2013/p06_make_notes.py new file mode 100644 index 00000000000..e1ea6562387 --- /dev/null +++ b/patches/may_2013/p06_make_notes.py @@ -0,0 +1,20 @@ +import webnotes + +def execute(): + webnotes.reload_doc("utilities", "doctype", "note") + for question in webnotes.conn.sql("""select * from tabQuestion""", as_dict=True): + name = question.question[:180] + if webnotes.conn.exists("Note", name): + webnotes.delete_doc("Note", name) + note = webnotes.bean({ + "doctype":"Note", + "title": name, + "content": "