Added ability to disable a student in student group/studnet batch

This commit is contained in:
Neil Trini Lasrado
2017-01-20 19:16:39 +05:30
parent c81621d3ce
commit 16d40cf0a3
6 changed files with 102 additions and 13 deletions

View File

@@ -0,0 +1,7 @@
import frappe
def execute():
frappe.reload_doc('schools', 'doctype', 'student_batch_student')
frappe.reload_doc('schools', 'doctype', 'student_group_student')
frappe.db.sql("update `tabStudent Batch Student` set active=1")
frappe.db.sql("update `tabStudent Group Student` set active=1")