From 7d0929b5bee379725d23154a69514fbb35b683bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 31 Oct 2018 18:17:35 +0100 Subject: [PATCH] Use int and Decimal instead of lambda issue7816 review74401002 --- production.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/production.py b/production.py index 6613c2a1fb..58bdb6c342 100644 --- a/production.py +++ b/production.py @@ -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