What can I do to get rid of the odor in my dishwasher?

If dishes are permitted to sit in the dishwasher for two or three days (to accumulate a full load), run the Rinse-Hold cycle at least once a day until the load accumulates.