From 91d1abe79582b7b28d09b129ef8ab6b41625aa53 Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Thu, 15 Jan 2009 03:43:17 +0100 Subject: [PATCH] Use new keyword for products_by_location --- purchase.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/purchase.py b/purchase.py index fda03c6260..362b32e9bb 100644 --- a/purchase.py +++ b/purchase.py @@ -785,7 +785,8 @@ class PurchaseLine(OSV): '_parent_purchase.party', '_parent_purchase.currency'], context="{'locations': [_parent_purchase.warehouse], " \ "'stock_date_end': _parent_purchase.purchase_date, " \ - "'purchasable': True}") + "'purchasable': True, " \ + "'stock_skip_warehouse': True}") unit_price = fields.Numeric('Unit Price', digits=(16, 4), states={ 'invisible': "type != 'line'",