'Validates overlap for Student Group, Instructor, Room'

def validate_overlap(self):

    from erpnext.schools.utils import validate_overlap_for
    if self.student_group:
        validate_overlap_for(self, u'Course    Schedule', u'student_group')
    validate_overlap_for(self, u'Course    Schedule', u'instructor')
    validate_overlap_for(self, u'Course    Schedule', u'room')
    if self.student_group:
        validate_overlap_for(self, u'Assessment    Plan', u'student_group')
    validate_overlap_for(self, u'Assessment    Plan', u'room')
    validate_overlap_for(self, u'Assessment    Plan', u'supervisor', self.supervisor)
