Grease a fat pan (approx. 32 x 39 cm; deep baking tray). Pour the cream into a small pot and cover and chill for the pouring. Wash the cream cup, dry it and use it as a measuring cup.
Quarter the pumpkin, remove seeds and fibers, peel if necessary, then grate. Preheat the oven (electric cooker: 175°C/circulating air: 150°C/gas: see manufacturer).
Cream butter, sugar, vanilla sugar and 1 pinch of salt with the whisks of the mixer. Stir in the eggs one by one. Mix flour, baking powder and almonds and stir in 2 portions. Stir in pumpkin flakes.
Put the dough on the fat pan and smooth it down. Bake in the hot oven for about 25 minutes. Remove from the oven and let it cool down.
Coarsely chop the chocolate for the icing. Melt in the cream while stirring at low heat. Remove from the stove. Let it cool down for about 5 minutes, stirring more often. Spread thinly on the cooled cake.
Refrigerate for about 3 hours. Dust with cocoa.