Add domain on product for purchase line

This commit is contained in:
Cédric Krier committed 2008-08-18 13:21:17 +02:00
1 parent 48644616f9
commit d008e6485a
1 file changed
+1
+1
View File
@@ -543,6 +543,7 @@ class PurchaseLine(OSV):
'invisible': "type != 'line'",
}, domain="[('category', '=', (product, 'product'))]")
product = fields.Many2One('product.product', 'Product',
domain=[('purchasable', '=', True)],
states={
'invisible': "type != 'line'",
}, on_change=['product', 'unit', 'quantity', 'description',