If you need to control the odor of intestinal gas temporarily, Pepto-Bismol can be a big help. Don't use it every day.
Pre-soaking beans and discarding the water is one approach to making no-gas beans. This can allow you to enjoy the benefits of legumes without the downside.
Many healthful foods, including legumes like beans and chickpeas or crucifers like broccoli and cabbage, have a downside. They create gas, or less delicately, make you fart.