Add domain on product for purchase line
This commit is contained in:
1 parent
48644616f9
commit
d008e6485a
1 file changed
+1
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user