Use declarative index definition for ModelSQL

issue5757
This commit is contained in:
Raimon Esteve 2022-11-09 18:32:40 +01:00
parent d4ad485d0f
commit b9dde5a902
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ class ProductBom(metaclass=PoolMeta):
__name__ = 'product.product-production.bom'
process = fields.Many2One('production.process', 'Process',
select=True, domain=[
domain=[
('output_products', '=', If(Bool(Eval('product')),
Eval('product', 0),
Get(Eval('_parent_product', {}), 'id', 0))),