From d73f5df5c622d934dbeb589637ef65a6b68b52bb Mon Sep 17 00:00:00 2001 From: Karla Stenger Date: Mon, 11 Jan 2016 10:31:33 -0300 Subject: [PATCH] hange Uom.round into an instance method. issue4423 review19661002 --- stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock.py b/stock.py index 7a34a7ec37..9bce696351 100644 --- a/stock.py +++ b/stock.py @@ -59,7 +59,7 @@ class Move: 'uom': uom.id, })) remainder -= quantity - remainder = Uom.round(remainder, uom.rounding) + remainder = uom.round(remainder) if count: count -= 1 assert remainder >= 0