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>
38 lines
1.6 KiB
XML
38 lines
1.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!--
|
|
Copyright 2026 Nexa Systems Inc.
|
|
License OPL-1 (Odoo Proprietary License v1.0)
|
|
Part of the Fusion Plating product family.
|
|
Sub 4 — Contract Review toggle on customer.
|
|
-->
|
|
<odoo>
|
|
|
|
<record id="view_partner_form_fp_contract_review" model="ir.ui.view">
|
|
<field name="name">res.partner.form.fp.contract.review</field>
|
|
<field name="model">res.partner</field>
|
|
<field name="inherit_id" ref="base.view_partner_form"/>
|
|
<field name="arch" type="xml">
|
|
<xpath expr="//notebook" position="inside">
|
|
<page string="Plating Contract Review"
|
|
name="fp_contract_review_prefs"
|
|
invisible="is_company != True">
|
|
<group name="fp_contract_review_group">
|
|
<p class="text-muted" colspan="2">
|
|
Toggle this on so QA sees a Contract Review
|
|
reminder banner whenever a new part is created
|
|
under this customer. The reminder is always
|
|
optional — it can be dismissed and never blocks
|
|
production. Once the part reaches a confirmed
|
|
manufacturing order, the banner disappears on
|
|
its own.
|
|
</p>
|
|
<field name="x_fc_contract_review_required"
|
|
widget="boolean_toggle"/>
|
|
</group>
|
|
</page>
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|