summaryrefslogtreecommitdiff
path: root/addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
diff options
context:
space:
mode:
authornie <nie@odoo.com>2021-02-05 12:13:24 +0000
committernie <nie@odoo.com>2021-02-05 15:39:42 +0000
commit3547b15cb362f73c60354070da5e49ffa674e432 (patch)
tree055dcb12b1f78803602b0e18976a5a019e2a2e8e /addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js
parent4852e48745114f474a36c5455625fb77b04b9af9 (diff)
[FIX] stock_account: total quantity can be zero
Follow-up of https://github.com/odoo/odoo/pull/64942 Explanation: When computing the total quantity, summing negative and positive values can sometimes lead to zero even if the scoped quantity is not zero. E.g.: Warehouse 1 has 10 items and Warehouse 2 has -10 items. Scoping on Warehouse 1 results in 10 items but the total quantity is 0. This commit also takes into account float precision. Inspired by: https://github.com/odoo/odoo/blob/d9b409247303c6b165a7df381169f2480a19900f/addons/stock_account/models/stock_quant.py#L36-L38 closes odoo/odoo#65609 Signed-off-by: backspac <backspac@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/lib/jquery.mjs.nestedSortable/jquery.mjs.nestedSortable.js')
0 files changed, 0 insertions, 0 deletions