Unable to print 0.00 float value on a report
Bug #723662 reported by
sraps (Alistek)
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP's Framework R&D |
Bug Description
It is not possible to print float field with value "0.00" on a report, though the value eg. "1.00" would print just fine. Throws error that it is not possible to coerce value to the Unicode type.
This problem is present on whole OpenERP 6.x branch and at least on OpenERP v5.0.15.
The root of the problem lies in that there is a special field type class defined for automatic formatting purposes, and there is no "__repr__" method defined for the class.
File name: report_sxw.py
Class name: _float_format
Line number: ~82
Related branches
lp:~openerp-dev/openobject-server/trunk-bug-723662-ysa
- Naresh(OpenERP) (community): Approve
- Yogesh (SerpentCS) (community): Needs Resubmitting
-
Diff: 33 lines (+4/-4)1 file modifiedopenerp/report/report_sxw.py (+4/-4)
lp:~openerp-community/openobject-server/fix_6.0_723662
Ready for review
for merging
into
lp:openobject-server/6.0
- OpenERP Core Team: Pending requested
-
Diff: 33 lines (+4/-4)1 file modifiedbin/report/report_sxw.py (+4/-4)
Changed in openobject-server: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
Hello,
I have attached the pdf with the value specified in bug specification. So please refer it and notify us.
For now I am closing this bug.
Thanks.