Use int and Decimal instead of lambda
issue7816 review74401002
This commit is contained in:
1 parent
95ea4187a2
commit
7d0929b5be
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user