I wouldn't plant toms after spuds, since overwintering tubers can carry blight. The other way round would be OK if you were short of space, since toms die off completely and there's nothing for the spores to overwinter on. It's not good practice though, since they're close relatives and share other diseases.