Hi Tomasz,
Cisco recommends the ASA failover pair to have the same versions for long term compatibility. But syncronization will take place between the devices even if they are in different versions. But a problem might arise if one of the command is not supported in the other version.
Have a look at the below link for the zero time upgrade procedure for ASA in active standby
http://www.cisco.com/en/US/docs/security/asa/asa80/configuration/guide/mswlicfg.html#wp1057338
I hope this helps
--
Rahul
P.S. Please mark the question as resolved if it has been answered. Do rate helpful posts.