In a medium skillet, saute onion in oil until translucent. Add the flour and mix well. Stir in the chiles, garlic puree, stock and salt and simmer 20 minutes. Puree in blender. Use immediately as a warm sauce for enchiladas. Or refrigerate or freeze.