The problem is (as yo already tell), that there is an object with the name 'a', which has no attribut 'report_name'. This might be caused by the upgrade, or one of your customized modules expects something )(object a) which is changed now.
agaplan_terms_and_conditions, is that a custom report, or is it a default report? Try looking in the .rml or .sxw file to see it at the top it defines the object as a.
Another location to check is the python module which is called to print the report, often found in the folder /addons/< module name >/report/, and the name is often < report_name >.py
#update1
agaplan_terms_and_conditions is a custom module you can download from the openerp site. Please download the version for V6.1, and install it