From 9fbe8b54b65689fca6c46fb96bfd73fbc96f125f 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 (transplanted from c934d6713653bd9a46ba1c1d566a172b9f055ccc) --- product.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/product.py b/product.py index 050fc0ccbd..199df27e08 100644 --- a/product.py +++ b/product.py @@ -208,7 +208,8 @@ class Product(OSV): '))' today = date_obj.today(cursor, user, context=context) 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,