This commit is contained in:
Mathias Behrle committed 2009-01-13 17:25:35 +01:00
commit 14866be545
1 file changed
+3 -1
+3 -1
View File
@@ -15,7 +15,9 @@ class OrderPoint(OSV):
product = fields.Many2One(
'product.product', 'Product', required=True, select=1,
domain=[('type', '=', 'stockable')])
domain="type == 'purchase' "\
"and [('type', '=', 'stockable'), ('purchasable', '=', True)] "\
"or [('type', '=', 'stockable')]")
warehouse_location = fields.Many2One(
'stock.location', 'Warehouse Location', select=1,
domain="[('type', '=', 'warehouse')]",