Cut the potatoes into thin slices about 1/8 inch (3 mm) thick. Halve the onion and slice it thinly.
Warm the oil in a 9- or 10-inch nonstick skillet over medium-low heat. Add the potatoes, cover and cook 12 to 15 minutes, stirring now and then, until tender but not browned.
Add the onion, cover again and cook 5 minutes more, until soft. Season with the salt.
Beat the eggs in a large bowl. Lift the potatoes and onion out of the pan with a slotted spoon, letting the oil drain back, and fold them into the eggs. Let stand 5 minutes.
Pour off all but 1 tablespoon oil and set the skillet over medium heat. Tip in the egg mixture and stir gently for the first minute, then leave it to set, covered, about 5 minutes, until the underside is golden.
Set a large flat plate over the skillet and turn the tortilla out onto it in one quick move. Slide it back into the pan, browned side up, and cook 4 to 5 minutes more.
Turn onto a board and let rest at least 10 minutes. Cut into wedges and serve warm or at room temperature.