brotherton-erpnext/erpnext/patches/v7_2/update_attendance_docstatus.py

10 lines
232 B
Python

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