Heat the oil in a large saucepan and gently fry the onion for 5 minutes, or until softened. Add the curry paste and tomato paste and fry for 30 seconds.
Add the pumpkin and fry for 5 minutes, then add the coconut milk and stock. Cover and simmer for 15 minutes, then remove the lid and simmer for a further 5 minutes.