Many pets have at one time or another even managed to embarrass us when the in-laws or your boss visit. Flatulence in pets is quite common, but that doesn't mean there is nothing you can do about it. There are several things to be done. Probably the most important thing that needs to be done is to closely examine your friend's diet. If you're feeding a commercial food high in grains, you may have found the problem.
Many dogs get gas from dry foods that have their main ingredients in the form of grains.
Also, some dogs are allergic to certain grains including corn and more commonly wheat. Their reaction to these grains can result in flatulence. Soy is another common culprit in causing too much wind. If possible, switch your pet over to a natural raw diet that excludes grains. If that is not possible, at the minimum, feed a good quality commercial food that has meat as its primary source of protein.