There is not much debate on whether pot stinks, The debate is on what can be legally done. Lawsuits have been filed by residents, they claim the proximity to cannabis growing operations lowers the quality of life.
The best rule of thumb is to be a good neighbor. Control your production odor. This goes for slaughter houses, breweries and any other business (including a pot farm) that creates a bad odor.