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 95ea4187a2
commit 7d0929b5be
1 file changed
+1 -1
+1 -1
View File
@@ -98,7 +98,7 @@ class Production(metaclass=PoolMeta):
for p in sub_products)
for warehouse in warehouses:
quantities = defaultdict(lambda: 0,
quantities = defaultdict(int,
((x, pbl.pop((warehouse.id, x), 0)) for x in product_ids))
# Do not compute shortage for product
# with different order point