Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Exception: 'a' object has no attribute 'report_name'

By
0x413x
on 5/23/13, 7:17 PM 892 views

Hi Everybody,

While trying to print the report "agaplan_terms_and_conditions" under OpenERP 6.1 (upgraded from a 6.0 with all modules updated), I have got this error :

Exception: 'a' object has no attribute 'report_name'

What is the problem, where does it come from ?

Thanks for your help,

0

patrick

--patrick--
1958
| 5 4 7
Baarn, Netherlands
--patrick--
patrick
On 5/23/13, 9:48 PM

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

0
0x413x
On 5/26/13, 2:19 PM

Thank you Patrick for your answer.

This is the default report I guess. In the "/addons/agaplan_terms_and_conditions" directory, there is no "report" directory, nor rml and sxw file. Just report_sxw.py. Maybe this file is out-of-date ?

Thanks for your help again.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 5/23/13, 7:17 PM
Seen: 892 times
Last updated: 3/16/15, 8:10 AM