In a large pot, heat the olive oil and fry the garlic and onions for 5 mins until almost softened. Add the pimenton and cumin, cook for a few mins, then add the vinegar, sugar, tomatoes and some seasoning. Cook for 10 mins.
Pour in the beans and cook for another 10 mins. Serve with rice and the accompaniments of your choice in small bowls.