feat(plating): Sub 4 — Contract Review (optional, QA-005 1:1 PDF)
Per-part contract review record (fp.contract.review) gated by a customer-level toggle, signed in two sections (QA Assistant → QA Manager), settings-based signer rosters (no new res.groups), banner on the part form that auto-dismisses once the first MO for the part hits confirmed. QA-005 Rev. 0 paper form reproduced 1:1 in a QWeb PDF. Never blocks MO/SO/WO — review is purely an audit artefact. Smoke test run on entech: 12 assertions pass including the 25-cell risk matrix parity with the paper form and 22 KB PDF render. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# -*- 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):
|
||||
_inherit = 'res.config.settings'
|
||||
|
||||
# Mirror the res.company fields so the admin can manage them from
|
||||
# Settings → Fusion Plating → Contract Review without navigating
|
||||
# into the company record.
|
||||
x_fc_qa_assistant_user_ids = fields.Many2many(
|
||||
related='company_id.x_fc_qa_assistant_user_ids',
|
||||
readonly=False,
|
||||
string='QA Assistant Signers',
|
||||
)
|
||||
x_fc_qa_manager_user_ids = fields.Many2many(
|
||||
related='company_id.x_fc_qa_manager_user_ids',
|
||||
readonly=False,
|
||||
string='QA Manager Signers',
|
||||
)
|
||||
Reference in New Issue
Block a user