report engin regression: fields not displayed in some circumstances
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
On branch 5-0
server rev #1789 (hey great commit)
addons rev #2343
When nested in particular ways, some python fields in the reports are no more displayed with the new report engine.
I don't know any example of such cases in the demo data, but here I provide attached a modified addons/
It looks like at least numeric fields such as integer and float can be subject to this bug.
Strangely, if you put such a [[ field_x ]] inside a [[ str(field_x) ]], or a [[ formatLang(field_x) ]] then it will be displayed, it's the case in my test case if you alter it that way.
To reproduce the bug you should test my order.rml report and you should look at the fields after "MAGIC ERROR", with no str() around they are missing, adding a str() around they will be shown.
This is an important bug, because some fields can be silently forgotten while they were showing using OpenERP 5.0.0.3.
Moreover, my customer bought a maintenance contract guarantying bugfix as we will emphasis also through the maintenance contract channel.
Moreover, there might be cases with non numeric types missing too such as explained in that forum post
http://
But unfortunately I wasn't able to reproduce such a case. It might be less important too, numeric type are very important on the contrary because the bug occurs often with them.
Hope this helps,
Raphaël Valyi
The attached .RML is not correct. Can you send another one ?