Fry the onions in a frying pan until clear.
Mix in all the other ingredients well. Bring to a boil then put on low for 45 minutes.
Smush any vegetable chunks until soft.
You can then use the sauce like that or cool and blend to get to smoother texture. It should still retain the chunky consistency though for best results so don't blend too long.