# -*- coding: utf-8 -*- # Copyright 2026 Nexa Systems Inc. # License OPL-1 (Odoo Proprietary License v1.0) # Part of the Fusion Plating product family. # # Phase 1 (Sub 11) — relocated from fusion_plating_bridge_mrp. # Adds the back-reference from fp.thickness.reading to the QC record # that produced it. Lives here (not in fusion_plating_certificates) # because the link target is fusion.plating.quality.check, owned by # fusion_plating_quality. from odoo import fields, models class FpThicknessReading(models.Model): _inherit = 'fp.thickness.reading' quality_check_id = fields.Many2one( 'fusion.plating.quality.check', string='Quality Check', ondelete='set null', index=True, help='The QC record the reading belongs to (populated when ' 'readings are logged from the mobile QC checklist).', ) auto_extracted = fields.Boolean( string='Auto-Extracted', help='True for readings parsed out of a Fischerscope PDF. ' 'These are replaced when the PDF is re-uploaded; ' 'manually-entered readings are preserved.', )