brotherton-erpnext/erpnext/patches/v7_2/update_attendance_docstatus.py
2017-11-23 17:57:33 +05:30

9 lines
192 B
Python

import frappe
def execute():
frappe.reload_doc("education", "doctype", "student_attendance")
frappe.db.sql('''
update `tabStudent Attendance` set
docstatus=0
where
docstatus=1''')