Pot growers in Palo Alto will have to limit their activities to the indoors if California voters legalize marijuana in November, the Palo Alto City Council decided Monday.

The council voted 7-1 to approve an ordinance that bans outdoor cultivation.

Without a local ban, the potential state law would allow an unlimited number of marijuana plants to be grown outside.

Mayor Pat Burt voted no after his proposal to hold off until the election results are known didn’t receive support. Councilman Tom DuBois was absent.

Vice Mayor Greg Scharff and Councilman Cory Wolbach said they want an ordinance in place to address outdoor marijuana growth. But they also want enough time for community feedback, as well as the fire chief’s take on the risks of indoor growth.

Scharff’s motion was amended to incorporate Wolbach’s suggestion that the ordinance expire after a year.

“I really want to have some fire under us to bring this back really quickly,” Wolbach said.

Council members considered approving an emergency ordinance, which would have gone into effect immediately.

Instead, the ordinance they approved Monday would not go into effect until 10 days after Election Day. This means that if the ballot measure passes, there will be a window in which outdoor marijuana growth is allowed in Palo Alto because its legalization would go into effect the day after the election.

Council members were not too concerned that marijuana growers would act so quickly.

Proposition 64, or the Adult Use of Marijuana Act, would make it legal for anyone 21 and older to smoke marijuana. The new law would also allow possession of up to 28.5 grams of marijuana, eight grams of concentrated marijuana and six marijuana plants for personal use.

The six marijuana plants would be allowed in a greenhouse if it’s locked and enclosed.

Though cities and counties cannot ban the indoor growth of marijuana if Proposition 64 passes, they can impose regulations regarding health and safety are acceptable, according to City Attorney Molly Stump.

Stump said city officials also will have time to explore regulations on the commercial aspect of marijuana because such activities will need a business license and the state likely wouldn’t start issuing them until January 2018.

California legalized medical marijuana nearly two decades ago, but medical marijuana dispensaries have been prohibited in Palo Alto since the adoption of a zoning ordinance in 1997.