fix: AttributeError on new Student creation (#19787)

This commit is contained in:
gavin
2019-12-03 12:54:18 +05:30
committed by Nabin Hait
parent 648d6e46f3
commit 35effe9be0

View File

@@ -40,7 +40,7 @@ class Student(Document):
frappe.throw(_("Student {0} exist against student applicant {1}").format(student[0][0], self.student_applicant))
def after_insert(self):
if not frappe.get_single('Education Settings').user_creation_skip:
if not frappe.get_single('Education Settings').get('user_creation_skip'):
self.create_student_user()
def create_student_user(self):