Set oven to preheat at 180° Celsius.
Peel and slice onion in thin and fine slices.
Evenly spread the sliced onion onto the tray in a single layer. If your tray is not big enough to accommodate all the onion, either use 2 trays or do it in batches.
Sprinkle salt all over and pour the oil. Using both your hands rub the oil and salt gently onto the onion slices. Make sure that all the onion slices are thoroughly coated.
Put the tray into the oven and fry the onion for 45 minutes on 180° Celsius, stirring thoroughly every 15 minutes.
After 45 minutes, increase the temperature to 200° Celsius and fry for another 30 minutes, stirring halfway.
Once done, take the tray out of the oven and transfer the onion onto another bowl. Let it cool down before you cover it and store it in the fridge.