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

10 lines
232 B
Python
Raw Normal View History

from __future__ import unicode_literals
2017-02-21 11:34:30 +05:30
import frappe
def execute():
2017-11-23 17:57:33 +05:30
frappe.reload_doc("education", "doctype", "student_attendance")
2017-02-21 11:34:30 +05:30
frappe.db.sql('''
update `tabStudent Attendance` set
docstatus=0
where
docstatus=1''')