Prevent using phantom BOM on production

Closes #14535
This commit is contained in:
Cédric Krier
2026-01-22 17:28:16 +01:00
parent faa9c7bf46
commit dd1cdfe656
+1
View File
@@ -80,6 +80,7 @@ class Production(
depends={'company'})
bom = fields.Many2One('production.bom', 'BOM',
domain=[
('phantom', '!=', True),
If(Eval('type') == 'disassembly',
('input_products', '=', Eval('product', -1)),
('output_products', '=', Eval('product', -1)),