{trunk] filter qty != 0 does not work correctly

Bug #654861 reported by Ferdinand
6
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 :-((

Revision history for this message
Ferdinand (office-chricar) wrote :
Changed in openobject-addons:
assignee: nobody → DHS(OpenERP) (dhs-openerp)
Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :

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

Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :

Given the comment from Fabien on bug 656378 (commented on the wrong place) it seems that this bug is not a rounding problem but an usability problem: The filter "Qty is not equal to 0" is being applied to the records before grouping (WHERE), but the user interface seems to suggest that the filtering is done after grouping (HAVING).

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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.