There's presently no way to force AI Vehicles to stay on a road during combat. In towns and cities, this can cause lots of issues. More than once, I find a tank has wandered off a road and has had its movement blocked by a tree.
On wheeled vehicles, you can set behaviour to "CARELESS" and combatMode to "YELLOW". However, tracked vehicles will not open fire on the enemy in this fashion.