'Makes a new Course Schedule.
:param date: Date on which Course Schedule will be created.'

def make_course_schedule(self, date):

    course_schedule = frappe.new_doc(u'Course    Schedule')
    course_schedule.student_group = self.student_group
    course_schedule.course = self.course
    course_schedule.instructor = self.instructor
    course_schedule.instructor_name = self.instructor_name
    course_schedule.room = self.room
    course_schedule.schedule_date = date
    course_schedule.from_time = self.from_time
    course_schedule.to_time = self.to_time
    return course_schedule
