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

10 lines
237 B
Python
Raw Normal View History

2017-02-21 06:04:30 +00:00
import frappe
def execute():
frappe.reload_doctype('Student Attendance')
# frappe.reload_doc("schools", "doctype", "student_attendance")
frappe.db.sql('''
update `tabStudent Attendance` set
docstatus=0
where
docstatus=1''')