brotherton-erpnext/erpnext/patches/v5_0/remove_birthday_events.py

8 lines
232 B
Python
Raw Normal View History

from __future__ import unicode_literals
2015-01-23 09:52:13 +00:00
import frappe
def execute():
for e in frappe.db.sql_list("""select name from tabEvent where
repeat_on='Every Year' and ref_type='Employee'"""):
frappe.delete_doc("Event", e, force=True)