Preheat oven to 375. Place cod in a greased baking dish or individual baking dishes.
In a heavy saucepan melt butter; stir in flour until smooth and remove from heat.
Gradually stir in half of the milk. Return to heat and beat until smooth and shiny. Gradually add remaining milk, salt, pepper and onion. Cook stirring until smooth and thickened.
Pour sauce over fish and sprinkle with breadcrumbs and cheese.
Bake in oven at 375 for 15-30 minutes until sauce bubbles and fish is cooked