From afa284d0221a2d56b7dab663eed9e71ce78ee816 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 21 Feb 2018 12:33:32 +0100 Subject: [PATCH] Do not group twice per product Since issue7068, the grouping per product is implicit if a list of product ids is set. issue7141 review44001002 --- tests/test_stock_lot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_stock_lot.py b/tests/test_stock_lot.py index 4b63524e69..d9f763f5fd 100644 --- a/tests/test_stock_lot.py +++ b/tests/test_stock_lot.py @@ -104,7 +104,7 @@ class StockLotTestCase(ModuleTestCase): (storage.id, product.id): 16, }) self.assertEqual(Product.products_by_location([storage.id], - [product.id], grouping=('product', 'lot')), { + [product.id], grouping=('lot',)), { (storage.id, product.id, lot1.id): 5, (storage.id, product.id, lot2.id): 8, (storage.id, product.id, None): 3,