2021-05-24 14:54:20 +00:00
|
|
|
import frappe
|
|
|
|
|
2021-09-02 11:14:59 +00:00
|
|
|
|
2021-05-24 14:54:20 +00:00
|
|
|
def execute():
|
|
|
|
frappe.reload_doc('hr', 'doctype', 'training_event')
|
|
|
|
frappe.reload_doc('hr', 'doctype', 'training_event_employee')
|
|
|
|
|
|
|
|
frappe.db.sql("update `tabTraining Event Employee` set `attendance` = 'Present'")
|
|
|
|
frappe.db.sql("update `tabTraining Event Employee` set `is_mandatory` = 1 where `attendance` = 'Mandatory'")
|