Preheat the oven to 170°C/325°F/gas 3. Heat some olive oil in a large frying pan, add the onions and cook over a medium heat for a few minutes until tender and golden brown. Spoon the onions into a casserole dish.
Toss the beef in the flour and season with salt and pepper. Heat