changeset 7dc2264e182e in modules/stock:5.6
details: https://hg.tryton.org/modules/stock?cmd=changeset;node=7dc2264e182e
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 5a29902d8fd6 -r 7dc2264e182e product.py
--- a/product.py        Wed Dec 23 21:30:49 2020 +0100
+++ b/product.py        Sun Jan 17 00:43:31 2021 +0100
@@ -520,7 +520,6 @@
                 'stock_date_end': date,
                 'forecast': True,
                 }
-            assert date != date_start
             with Transaction().set_context(**context):
                 quantities[date] = Product.products_by_location(
                     [warehouse_id],

Reply via email to