details:   https://code.tryton.org/tryton/commit/b5f7ee546771
branch:    7.8
user:      Cédric Krier <[email protected]>
date:      Thu Jan 22 17:28:16 2026 +0100
description:
        Prevent using phantom BOM on production

        Closes #14535
        (grafted from 5841166dedee4edb9ab3b73e2cbdda59a8849297)
diffstat:

 modules/production/production.py |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r 3dc5cc5d2108 -r b5f7ee546771 modules/production/production.py
--- a/modules/production/production.py  Thu Jan 22 18:53:34 2026 +0100
+++ b/modules/production/production.py  Thu Jan 22 17:28:16 2026 +0100
@@ -93,6 +93,7 @@
         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)),

Reply via email to