From 9bc170b22e1b08313216d2e9291b6d36dde9e7ff Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Tue, 11 Nov 2008 23:59:08 +0100 Subject: [PATCH] Fix delta computation --- forecast.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forecast.py b/forecast.py index 3d8c821cb3..e70fe810b2 100644 --- a/forecast.py +++ b/forecast.py @@ -221,7 +221,7 @@ class ForecastLine(OSV): move_obj = self.pool.get('stock.move') uom_obj = self.pool.get('product.uom') delta = line.forecast.to_date - line.forecast.from_date - delta = delta.days + delta = delta.days + 1 nb_packet = int(line.quantity/line.minimal_quantity) distribution = self.distribute(delta, nb_packet) unit_price = False