changeset 9026b26fa55c in modules/stock_split:default details: https://hg.tryton.org/modules/stock_split?cmd=changeset&node=9026b26fa55c description: Always round remainder even if it is less than quantity
issue10227 review338211002 diffstat: stock.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diffs (14 lines): diff -r bab9cc7ef7b4 -r 9026b26fa55c stock.py --- a/stock.py Mon Apr 19 16:40:51 2021 +0200 +++ b/stock.py Fri Apr 30 13:32:26 2021 +0200 @@ -58,9 +58,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):