Gratinated beans with fried potatoes