Module 'document' contains invalid relational field 'user'
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) | Status tracked in Trunk | |||||
7.0 |
Fix Released
|
Low
|
OpenERP Publisher's Warranty Team | |||
Trunk |
Confirmed
|
Medium
|
OpenERP R&D Addons Team 1 |
Bug Description
OpenERP version: 7.0-20130429-232454
Relevant code of 'report.
'user': fields.
'user_id' is an integer, so it's impossible to follow the related field 'user'.
This problem was discovered by running the 'general_
Note that the error was very cryptic:
TypeError: 'int' object has no attribute '__getitem__'
Maybe some better error handling could be added to the relational field class in fields.py (in the method '_fnct_read'). The 'path' of the related field is followed, but there's no check if the path is actually browsable.
Related branches
- Naresh(OpenERP) (community): Approve
-
Diff: 12 lines (+1/-1)1 file modifieddocument/report/document_report.py (+1/-1)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Hi Karel Marissens,
For V7, this issue has been fixed in the,
Branch: lp:~openerp-dev/openobject-addons/7.0-opw-592256-rgo
Rev Id: <email address hidden>
Rev #: 9099
>Note that the error was very cryptic:
> TypeError: 'int' object has no attribute '__getitem__'
>
>Maybe some better error handling could be added to the relational field class in fields.py (in the method '_fnct_read'). The 'path' of the related field is followed, but there's no check if the path is actually browsable.
This should be considered as an improvement suggestion and should be targeted for trunk version, so, I will open it for trunk.
Thanks.