We used to have a Siberian Huskey that would do the same thing - she was too prim and proper to believe she did it!
The Rhodesian Ridgeback we had before the one we have now would fart, then get up and leave the room. Never left before, always afterward 'cause he couldn't stand the smell either.