Wash and chop the octopus. Saute the onion with olive oil and add the octopus in the pot. Boil over low heat in its own gravy and when almost done add the garlic, vinegar, bay leaves, pepper, a little water, if necessary, and boil for a little while.