Put a wide frying pan over a medium heat. Add the olive oil and butter, then the onions and a pinch of salt. Cook, stirring regularly, for 20 minutes until soft and starting to caramelise
While the onions cook, preheat the oven to 170°C and fill a large bowl with cold water. Peel the potatoes, then use a mandoline to slice them into 2-3mm thick discs. Keep the sliced potatoes in the water to prevent them browning. Once they’re all sliced, drain and pat the potato slices dry
Lightly butter a baking dish (around 20x30cm) and arrange a layer of potato slices over the base, with each disc overlapping slightly. Season with salt and pepper, then spoon over a thin layer of the onions. Repeat this process until all the onions and potatoes are used up, finishing with a neat layer of potatoes on top
Carefully pour the hot vegetable stock into the dish, aiming around the edges so as to not disturb the layers. The stock should come around halfway up the dish. Cover the dish loosely with foil then bake in the oven for 45 minutes
Remove the foil and return the dish to the oven for a final 30 minutes to crisp up the top
Meanwhile, make the anchovy butter. Blitz the butter, anchovies and anchovy oil together in a food processor
Remove the dish from the oven and leave to cool for 10 minutes. Spread or dot the anchovy butter all over the surface so it melts, before scattering over the crispy shallots, layering over the anchovy fillets and scattering with chopped parsley