feat(views): partner Aerospace group + recipe Certificate Output + cert banner

Three view edits to surface the new cert toggles + workflow nudges:

1. res.partner — Plating Documents tab gains a "Aerospace / Defence"
   separator + group with the three new toggles (Nadcap / MTR /
   Customer-Specific). All boolean_toggle widget, default OFF.

2. fp.process.node — Recipe form gains a "Certificate Output" group
   visible only when node_type == 'recipe'. Five requires_* toggles
   + a blue info banner explaining the suppress-only precedence.

3. fp.certificate — Certificate PDF tab gains a yellow alert banner
   when certificate_type is one of the three orphan types AND no
   attachment is set. Tells the operator "this type expects a PDF
   you upload from disk".

Sub: docs/superpowers/specs/2026-05-27-recipe-cert-toggles-design.md
Task: T6.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-05-27 02:05:28 -04:00
parent b7211468b2
commit 164b775206
3 changed files with 56 additions and 0 deletions

View File

@@ -167,6 +167,18 @@
</field>
</page>
<page string="Certificate PDF" name="pdf">
<!-- Manual-attach banner for orphan cert types
(Nadcap / Mill Test / Customer-Specific) —
spec 2026-05-27. action_issue refuses to
finalize these types without a PDF. -->
<div class="alert alert-warning" role="alert"
invisible="certificate_type not in ('nadcap_cert', 'mill_test', 'customer_specific') or attachment_id">
<i class="fa fa-info-circle me-2"/>
This certificate type expects a PDF you upload
from disk (supplier doc / regulator-issued cert
/ filled customer template). Auto-rendering is
not provided.
</div>
<group>
<field name="attachment_id"/>
</group>