From 9cfdb6481ef2864c35effaade6eb795179e0e9d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 21 Aug 2011 11:16:20 +0200 Subject: [PATCH] Use the warehouse quantity to compute requests review88001 --- purchase_request.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/purchase_request.py b/purchase_request.py index 793c290940..d4fb301bac 100644 --- a/purchase_request.py +++ b/purchase_request.py @@ -149,8 +149,7 @@ class PurchaseRequest(ModelSQL, ModelView): for min_date in date2products: product_ids = [x[0].id for x in date2products[min_date]] with Transaction().set_context(forecast=True, - stock_date_end=min_date or datetime.date.max, - stock_skip_warehouse=True): + stock_date_end=min_date or datetime.date.max): pbl = product_obj.products_by_location(warehouse_ids, product_ids, with_childs=True, skip_zero=False) for product, max_date in date2products[min_date]: