From 547d9b2bfc5ec6a12cd8ed78fcb3ecbcd2ccfb52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 28 Oct 2009 09:18:00 +0100 Subject: [PATCH] Compute infinite date end like a future date for issue1259 (transplanted from 2e24870d23762982a4ee045671c371bdd37f0d1a) --- product.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/product.py b/product.py index 199df27e08..d5a95117de 100644 --- a/product.py +++ b/product.py @@ -184,10 +184,6 @@ class Product(OSV): context['stock_date_end'], context['stock_date_end'], ] - # infinite date end: take all states for the moves - elif context['stock_date_end'] == datetime.date.max: - state_date_clause = 'state in (%s, %s, %s)' - state_date_vals = ['done', 'assigned', 'draft'] # future date end: filter move on state done and date # before today, or on all state and date between today and # date_end.