summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorArnold Moyaux <arm@odoo.com>2018-04-25 11:30:51 +0200
committerArnold Moyaux <arm@odoo.com>2018-04-25 15:43:21 +0200
commit6fac0b024177ba360b2473170dd880d108ac0492 (patch)
treec85468d0f4ed0a878d27f75b4b8e676e1761aad8 /addons/web/static/src/js/views/basic/basic_model.js
parent32e7dfe0c4f33cdd76ed186500b5982ca3d3fb48 (diff)
[FIX] stock: extra move incorrect qty
Usecase to reproduce: - Create a product A with a qty on hand 5.5 - Create a delivery order with an initial demand of 5.5 - Validate it with a qty equals to 5.95 The initial demand is updated to 5.951 then reduced to 5.95 and a backorder is created with an initial demand of 0.001. That should not happen since I process extra quantities. It python 5.95 - 5.5 = 0.4500000000000002 and the float_compare use a round UP method thus it returns 0.451 and the following flow is based on a wrong value. In this case a float compare is used before the float round, so an HALF-UP rounding should be okay since a very small quantity diff should be filter by the compare. Fixes #24401
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions