Merge lp:~openerp-dev/openobject-addons/7.0-opw-606679-jam into lp:openobject-addons/7.0
Status: | Needs review |
---|---|
Proposed branch: | lp:~openerp-dev/openobject-addons/7.0-opw-606679-jam |
Merge into: | lp:openobject-addons/7.0 |
Diff against target: |
20 lines (+2/-1) 1 file modified
product/product.py (+2/-1) |
To merge this branch: | bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-606679-jam |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Core Team | Pending | ||
Review via email: mp+216189@code.launchpad.net |
Description of the change
UOM conversion leads to the wrong stock count, Using ceiling or mathematical round for the UOM conversion is too risky and it leads to the extra stock counting. As Uom rounding field store the random values after 13 decimal values(Floating Point Arithmetic issue) so using the ceiling and openerp rounding values lead to wrong values and in case of stock counting this create extra stock entries.
Story:
- Create Unit of Measure : 12/CASE, under Unit category with Larger then base with Rounding Precision 0.010 and Ratio 12.000000000000 but actually it will store as 12.000000000048.
- Create a Product "Router R430" with Units as base UOM.
- Create the Purchase Order with 9 qty, UOM = 12/CASE, confirm and receive them.
- Check Quantity On Hand and Forecasted Quantity which will be shown 109 instead of 108. This is case of ceiling rounding.
Kindly review this
Thanks