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

        Closes #14535
diffstat:

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

diffs (11 lines):

diff -r accca4565e90 -r 5841166dedee modules/production/production.py
--- a/modules/production/production.py  Tue Jan 20 18:43:53 2026 +0100
+++ b/modules/production/production.py  Thu Jan 22 17:28:16 2026 +0100
@@ -80,6 +80,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