Add missing domain on product of product-bom
This commit is contained in:
1 parent
beae5e9a12
commit
69e0931c05
1 file changed
+4
-1
+4
-1
@@ -49,7 +49,10 @@ class ProductBom(ModelSQL, ModelView):
|
||||
_description = __doc__
|
||||
|
||||
product = fields.Many2One('product.product', 'Product',
|
||||
ondelete='CASCADE', select=1, required=True)
|
||||
ondelete='CASCADE', select=1, required=True,
|
||||
domain=[
|
||||
('type', '!=', 'service'),
|
||||
])
|
||||
bom = fields.Many2One('production.bom', 'BOM', ondelete='CASCADE',
|
||||
select=1, required=True, domain=[
|
||||
('output_products', '=', If(Bool(Eval('product')),
|
||||
|
||||
Reference in new issue
Block a user