The 2004 and 2007 Chevy Colorado share identical radio mounting brackets and wiring harnesses. A 2004 unit will physically install in a 2007.
Caveat: You may need a 2007-specific faceplate/trim kit to match the dashboard aesthetics (button layout, display shape, bezel color). The radio chassis and connectors are the same.
Verify part numbers if possible; aftermarket units require a GMOS-LAN-02 or similar interface for steering wheel controls/OnStar retention.