changeset a8384233c129 in modules/stock:5.8
details: https://hg.tryton.org/modules/stock?cmd=changeset;node=a8384233c129
description:
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
(grafted from c9582871ec46761fd094f7c03b87cd5be565c5a4)
diffstat:
product.py | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diffs (11 lines):
diff -r 97184fd290eb -r a8384233c129 product.py
--- a/product.py Wed Dec 23 21:30:49 2020 +0100
+++ b/product.py Sun Jan 17 00:43:31 2021 +0100
@@ -538,7 +538,6 @@
'stock_date_end': date,
'forecast': True,
}
- assert date != date_start
with Transaction().set_context(**context):
quantities[date] = Product.products_by_location(
[warehouse_id],