changeset 4d1c8f8291ce in modules/stock_split:5.0 details: https://hg.tryton.org/modules/stock_split?cmd=changeset&node=4d1c8f8291ce description: Always round remainder even if it is less than quantity
issue10227 review338211002 (grafted from 9026b26fa55cc3a11b09df83516d3f3586fab587) diffstat: stock.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (14 lines): diff -r 369d8a399861 -r 4d1c8f8291ce stock.py --- a/stock.py Sat Apr 04 18:06:13 2020 +0200 +++ b/stock.py Fri Apr 30 13:32:26 2021 +0200 @@ -62,9 +62,9 @@ 'uom': uom.id, })) remainder -= quantity - remainder = uom.round(remainder) if count: count -= 1 + remainder = uom.round(remainder) assert remainder >= 0 if remainder: with Transaction().set_context(_stock_move_split=True):