do you have a separate trap for the dishwasher???
or is it going over to the disposal....??
put a loop in the line if necessary to the disposal..
but you should not be getting any odor from a dishwasher
even if it is directly droppping into an open line..
is the smell more like a "rotten egg" type smell???