From 582c2b57f04dc47126e42dda0b3ca9301fa6210c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 17 Jan 2021 00:43:31 +0100 Subject: [PATCH] Remove assert on date different from date_start The assert introduced in rev fd2a67c576f3 is wrong because it can happen that two dates are consecutive of 1 day. issue9942 review339541002 --- product.py | 1 - 1 file changed, 1 deletion(-) diff --git a/product.py b/product.py index 9fd2649abb..409a7dcee5 100644 --- a/product.py +++ b/product.py @@ -543,7 +543,6 @@ class ProductQuantitiesByWarehouse(ModelSQL, ModelView): 'stock_date_end': date, 'forecast': True, } - assert date != date_start with Transaction().set_context(**context): quantities[date] = Product.products_by_location( [warehouse_id],