There is nothing in the dishwasher that will cause an odor until you get to the drain system. Unless the water or air from the drain system has an odor, the plastic pieces inside the pump and drain module won't stink.
Let's Get It Fixed!
HomeX virtual experts will assess your issue (for free!) and can resolve simple problems.