mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 08:54:45 +00:00
[event] [fix] commonified delete_events method, which is executed before auto-creation of events. Fixed delete issue
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user