Traditionally, onions are caramelized in butter which gives it a rich flavor. You could use avocado oil, but the best way to make vegan French onion soup would be to caramelize your onions in a butter substitute such as Earth Balance.