# -*- coding: utf-8 -*- # Copyright 2026 Nexa Systems Inc. # License OPL-1 (Odoo Proprietary License v1.0) # Part of the Fusion Plating product family. """Per-customer QC policy — does this customer require quality control sign-off on every job, and which checklist template governs the checks? """ from odoo import fields, models class ResPartner(models.Model): _inherit = 'res.partner' x_fc_requires_qc = fields.Boolean( string='Require QC Sign-off', default=False, tracking=True, help='When enabled, a job for this customer cannot be marked ' 'complete until a QC inspector has signed off on the ' 'quality checklist.', ) x_fc_qc_template_id = fields.Many2one( 'fp.qc.checklist.template', string='QC Checklist Template', help='Override the auto-resolved template for this customer. ' 'Leave blank to use any active customer-specific template, ' 'falling back to the global default.', )