Use new keyword for products_by_location

This commit is contained in:
Bertrand Chenal committed 2009-01-15 03:43:17 +01:00
1 parent a6e9d93d09
commit 91d1abe795
1 file changed
+2 -1
+2 -1
View File
@@ -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'",