If the dishwasher is being used in a natural way with correct maintenance, no foul odours should emerge at all. If it happens, filters and drains have to be checked first. Food particles could remain there and start to rot. The dishwasher deodorant will help but not for long. You need to eliminate the culprit. And if there is an electrical burning smell, switch the power supply off and call repairmen immediately!