How to populate color filed value in course schedule tool to course schedule

i added a color field to course schedule tool, i want that color field value to be populated in individually created course schedule from this course schedule tool.
How to make it possible?

override the existing function write into your custom app, make sure you need to have color field in course schedule tool set key as color only.

def make_course_schedule(self, date):
	"""Makes a new Course Schedule.
	:param date: Date on which Course Schedule will be created."""
	course_schedule = frappe.new_doc("Course Schedule")
	course_schedule.student_group = self.student_group
	course_schedule.course = self.course
	#below added color code populated in Course Schedule
	course_schedule.color = self.color
	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