# -*- coding: utf-8 -*- # Copyright 2026 Nexa Systems Inc. # License OPL-1 (Odoo Proprietary License v1.0) # # x_fc_use_native_jobs — company-level setting that controls whether # SO confirmation creates a native fp.job record (this module) or # the legacy mrp.production / mrp.workorder records (bridge_mrp). # # Default: False (legacy MO flow). Phase 9 cutover flips this to True # on entech. from odoo import fields, models class ResConfigSettings(models.TransientModel): _inherit = 'res.config.settings' x_fc_use_native_jobs = fields.Boolean( string='Use Native Plating Jobs', config_parameter='fusion_plating_jobs.use_native_jobs', help='When enabled, SO confirmation creates fp.job records ' 'instead of mrp.production. Phase-2 migration toggle.', )