[IMP] Rounding should be done on move immediately to default UoM and quants should...
authorJosse Colpaert <jco@odoo.com>
Thu, 20 Nov 2014 10:59:29 +0000 (11:59 +0100)
committerJosse Colpaert <jco@odoo.com>
Tue, 2 Dec 2014 14:51:58 +0000 (15:51 +0100)
commit77f8732680196970089acd9f5e54478c76890a0b
tree668693d1854138dfb916e1681fcf1b38e20deda7
parent244c8ee6259fdb699b992996d8ef9ff82b3294b1
[IMP] Rounding should be done on move immediately to default UoM and quants should be rounded to the default UoM + remaining_qty

[FIX] Remaining qty should each time be in the default UoM of the product

Even with different UoM we want a consistent matching between moves and pack operations.
When calculating the remaining qty on move/pack operation we always start by converting the
qty on the move/operation to the default UoM and afterwards we subtract the links between them
which will also be in the default UoM of the product.
In order to create backorders / extra moves these quantities are used.
addons/stock/stock.py