Community mailing list archives

community@mail.odoo.com

RE: Report from a wizard ERROR

by
Tibyan Hussien
- 09/29/2015 02:32:40
this is the report
http://hastebin.com/toleruyule.xml
the report python file
http://hastebin.com/asusiditiy.coffee
and the wizard file
http://hastebin.com/yusasovale.coffee

but still having the same error
QWebException: "'NoneType' object has no attribute '__getitem__'" while evaluating
"get_requests(data['form']['req_ids'])"

any advise

Tibyan

Subject: Re: Report from a wizard ERROR
From: shivam1111@gmail.com
Date: Tue, 29 Sep 2015 06:13:34 +0000
To: community@mail.odoo.com

This is happening because in your report you have printted "o.req_ids"
where o is browse object for the model for which report is being printed. And this model for which you are printing the report does not have the field 'req_ids'

So if i print a report for sale.order and in the report i type o.req_ids then it will throw me an error because sale.order does not have the req_ids field

Hope this helps

On Tue, Sep 29, 2015 at 11:28 AM, tibyan zarroug <777m@live.co.uk> wrote:
Dear Odoo community
Please advise me on this error
QWebException: "'NoneType' object has no attribute 'req_ids'" while evaluating
'o.req_ids'

I am trying to make a report from a wizard

Tibyan

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe


_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-59
Post to: mailto:community@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe