Vietnam’s Law on Entry, Exit, Transit and Residence of Foreigners (Law No. 47/2014/QH13, as later amended) sets the conditions for entry in Article 20: a passport or equivalent travel document, and a visa, unless a visa exemption applies, and the traveller must not fall under the refusal grounds in Article 21. For unilateral visa exemption, the passport must still be valid for at least six months. A return or onward ticket is not among those entry conditions.
Transit is a different case. Article 23 says a foreigner may transit Vietnam when they have a passport or equivalent document, a ticket suitable for the trip to a third country, and a visa for that country unless they are visa-exempt there.
The fact that ordinary entry law does not list a ticket does not stop an airline from applying its own boarding rules, or an officer from asking about your plans. If you are transiting rather than entering, the published standard is a ticket to the next country.