Don't round compute_qty in set_state_packed for internal quantity counter for
issue899
This commit is contained in:
1 parent
84e4b8fd3e
commit
4fc62ea1b5
1 file changed
+3
-3
+3
-3
@@ -513,7 +513,7 @@ class PackingOut(OSV):
|
||||
if move.state == 'cancel': continue
|
||||
quantity = uom_obj.compute_qty(
|
||||
cursor, user, move.uom, move.quantity, move.product.default_uom,
|
||||
context=context)
|
||||
round=False, context=context)
|
||||
outgoing_qty.setdefault(move.product.id, 0.0)
|
||||
outgoing_qty[move.product.id] += quantity
|
||||
|
||||
@@ -521,7 +521,7 @@ class PackingOut(OSV):
|
||||
if move.state == 'cancel': continue
|
||||
qty_default_uom = uom_obj.compute_qty(
|
||||
cursor, user, move.uom, move.quantity, move.product.default_uom,
|
||||
context=context)
|
||||
round=False, context=context)
|
||||
# Check if the outgoing move doesn't exist already
|
||||
if outgoing_qty.get(move.product.id):
|
||||
# If it exist, decrease the sum
|
||||
@@ -567,7 +567,7 @@ class PackingOut(OSV):
|
||||
}, context=context)
|
||||
removed_qty = uom_obj.compute_qty(
|
||||
cursor, user, move.uom, min(exc_qty, move.quantity),
|
||||
move.product.default_uom, context=context)
|
||||
move.product.default_uom, round=False, context=context)
|
||||
outgoing_qty[move.product.id] -= removed_qty
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user