From e2fb7aa69c7e52cdcf619b495e17967af0df64c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 28 Oct 2009 09:17:16 +0100 Subject: [PATCH] Use stock_assign to compute product by location with future date --- product.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product.py b/product.py index 2f4b3b4283..3dbf5e4d9d 100644 --- a/product.py +++ b/product.py @@ -278,7 +278,8 @@ class Product(ModelSQL, ModelView): ')' state_date_vals = [ - 'done', 'assigned', today, today, + 'done', context.get('stock_assign') and 'assigned' or 'done', + today, today, 'done', 'assigned', 'draft', context['stock_date_end'], today, context['stock_date_end'], today,