Disconnecting the battery is recommended so there won't be feedback from the welding current that fries delicate electronics. However, if you attach the welding ground close to the area being welded and be sure the ground has a good connection, you should be okay.
Personally, I prefer to be safe and disconnect the battery ground cable.