[event] [fix] commonified delete_events method, which is executed before auto-creation of events. Fixed delete issue

This commit is contained in:
Anand Doshi
2013-06-17 12:51:36 +05:30
parent ad6180ef6d
commit 11d311376e
4 changed files with 14 additions and 17 deletions

View File

@@ -303,3 +303,8 @@ class TransactionBase(DocListController):
})
webnotes.bean(event_doclist).insert()
def delete_events(ref_type, ref_name):
webnotes.delete_doc("Event", webnotes.conn.sql_list("""select name from `tabEvent`
where ref_type=%s and ref_name=%s""", (ref_type, ref_name)), for_reload=True)