Roughly chop the onions and sauté in half of the olive oil for 3 minutes. Add the parsley, the pitted and chopped chilli pepper and the beans, mix everything well. Salt and pepper. Spread the potatoes on top and stop stirring. Spread the tomatoes on top. Pour the rest of the olive oil over it. Lower the heat and cook for 45 minutes. In between, check whether there is enough liquid, possibly add a little broth. Take the pot off the plate and let it cool down a bit.