Use int and Decimal instead of lambda

issue7816
review74401002
This commit is contained in:
Cédric Krier committed 2018-10-31 18:17:35 +01:00
1 parent bcc0c28806
commit 9625eee032
1 file changed
+1 -1
+1 -1
View File
@@ -161,7 +161,7 @@ class LotUnitMixin(object):
for shipment in shipments:
for move_attribute in cls._lot_unit_moves:
lot_quantities = defaultdict(lambda: 0)
lot_quantities = defaultdict(int)
for move in getattr(shipment, move_attribute):
if move.state != 'done':
continue