40 lines
1.4 KiB
Python
40 lines
1.4 KiB
Python
# -*- coding: utf-8 -*-
|
|
# Copyright 2026 Nexa Systems Inc.
|
|
# License OPL-1 (Odoo Proprietary License v1.0)
|
|
# Part of the Fusion Plating product family.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class ResConfigSettings(models.TransientModel):
|
|
"""Expose Fusion Plating CoC settings on the standard Settings page
|
|
so they show up under a Fusion Plating section that the owner can
|
|
edit like any other Odoo settings."""
|
|
_inherit = 'res.config.settings'
|
|
|
|
x_fc_owner_user_id = fields.Many2one(
|
|
related='company_id.x_fc_owner_user_id', readonly=False,
|
|
)
|
|
# x_fc_coc_signature_override was retired 2026-05-17 — cert
|
|
# signatures now come from the certifier user's Plating Signature
|
|
# only. Field stays on res.company (no migration) but is no longer
|
|
# exposed in settings.
|
|
x_fc_nadcap_logo = fields.Binary(
|
|
related='company_id.x_fc_nadcap_logo', readonly=False,
|
|
)
|
|
x_fc_nadcap_active = fields.Boolean(
|
|
related='company_id.x_fc_nadcap_active', readonly=False,
|
|
)
|
|
x_fc_as9100_logo = fields.Binary(
|
|
related='company_id.x_fc_as9100_logo', readonly=False,
|
|
)
|
|
x_fc_as9100_active = fields.Boolean(
|
|
related='company_id.x_fc_as9100_active', readonly=False,
|
|
)
|
|
x_fc_cgp_logo = fields.Binary(
|
|
related='company_id.x_fc_cgp_logo', readonly=False,
|
|
)
|
|
x_fc_cgp_active = fields.Boolean(
|
|
related='company_id.x_fc_cgp_active', readonly=False,
|
|
)
|