mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
[fix] [minor] reload event on birthday patch
This commit is contained in:
@@ -5,6 +5,7 @@ from __future__ import unicode_literals
|
|||||||
import webnotes
|
import webnotes
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
webnotes.reload_doc("core", "doctype", "event")
|
||||||
webnotes.conn.sql("""delete from `tabEvent` where repeat_on='Every Year' and ref_type='Employee'""")
|
webnotes.conn.sql("""delete from `tabEvent` where repeat_on='Every Year' and ref_type='Employee'""")
|
||||||
for employee in webnotes.conn.sql_list("""select name from `tabEmployee` where status='Active' and
|
for employee in webnotes.conn.sql_list("""select name from `tabEmployee` where status='Active' and
|
||||||
ifnull(date_of_birth, '')!=''"""):
|
ifnull(date_of_birth, '')!=''"""):
|
||||||
|
|||||||
Reference in New Issue
Block a user