{trunk] filter qty != 0 does not work correctly
Bug #654861 reported by
Ferdinand
This bug report is a duplicate of:
Bug #636983: Domain Calculation : Wrong behavior with 0.0.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
inventory analysis
filter "equal 0" and "not equal 0" does not return correct results
I guess the beloved rounding issues :-((
Changed in openobject-addons: | |
assignee: | nobody → DHS(OpenERP) (dhs-openerp) |
affects: | openobject-addons → openobject-client |
affects: | openobject-client → openobject-server |
Changed in openobject-server: | |
assignee: | DHS(OpenERP) (dhs-openerp) → nobody |
To post a comment you must log in.
The equality tests should be made with care when working with floating point numbers.
The easiest example on Python:
>>> 1.1 - 1 == 0.1
False
>>> round(1.1 - 1, 4) == round(0.1, 4)
True