An open alcohol container may legally be placed:

It is illegal for anyone, driver or passenger, to drink alcoholic beverages in a motor vehicle. You cannot legally have an open alcohol container in your vehicle. Any open containers must be secured in the trunk of the vehicle.
DMV Writen Test