# -*- coding: utf-8 -*- # Copyright 2026 Nexa Systems Inc. # License OPL-1 (Odoo Proprietary License v1.0) # # Phase 3 — parallel job/step links on fusion.plating.batch. # The legacy workorder_id link to mrp.workorder stays in place. from odoo import fields, models class FusionPlatingBatch(models.Model): _inherit = 'fusion.plating.batch' x_fc_step_id = fields.Many2one( 'fp.job.step', string='Plating Step', index=True, help='Native fp.job.step link. Coexists with the legacy ' 'workorder_id link to mrp.workorder.', ) x_fc_job_id = fields.Many2one( 'fp.job', related='x_fc_step_id.job_id', store=True, string='Plating Job', )