For the goulash, rinse the turkey leg and dab dry. Peel skin, dice meat. Finely dice the bacon. Peel and dice onions and garlic. Cut pumpkin into quarters, remove seeds, wash and dice. Beans wash and halve. Dice tomatoes finely.
Heat the oil in a frying pan and fry the meat and bacon thoroughly. Add pumpkin, beans, tomatoes, onions and garlic, fry briefly. Dust with flour and sauté briefly. Deglaze with 500 ml water and cream. Season with salt and pepper. Cover and stew for about 35 minutes.
For the potato layer, peel the potatoes, wash them and slice them lengthwise into thin slices. Melt butter.
Season goulash to taste, stir in cream cheese and pour everything into an ovenproof dish. Place the potatoes close together almost vertically. Season with salt and sprinkle with butter. Bake in a hot oven (electric cooker: 200 °C/circulating air: 180 °C/gas: see manufacturer) for about 35 minutes. Wash and chop the thyme. Mix with crumbs and parmesan. Sprinkle on the potatoes and bake for another 10 minutes.