hange Uom.round into an instance method.

issue4423
review19661002
This commit is contained in:
Karla Stenger committed 2016-01-11 10:31:33 -03:00
1 parent d93754d152
commit d73f5df5c6
1 file changed
+1 -1
+1 -1
View File
@@ -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