mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-27 17:04:47 +00:00
fix: AttributeError on new Student creation (#19787)
This commit is contained in:
@@ -40,7 +40,7 @@ class Student(Document):
|
|||||||
frappe.throw(_("Student {0} exist against student applicant {1}").format(student[0][0], self.student_applicant))
|
frappe.throw(_("Student {0} exist against student applicant {1}").format(student[0][0], self.student_applicant))
|
||||||
|
|
||||||
def after_insert(self):
|
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()
|
self.create_student_user()
|
||||||
|
|
||||||
def create_student_user(self):
|
def create_student_user(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user