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:
@@ -132,6 +132,38 @@
|
||||
groups="fusion_plating.group_fusion_plating_supervisor"/>
|
||||
</group>
|
||||
</group>
|
||||
<!-- Certificate Output — recipe-level cert suppression
|
||||
(spec 2026-05-27). Recipe can SUPPRESS cert types
|
||||
the customer requested but never add new ones.
|
||||
Default True everywhere = inherit current behaviour.
|
||||
Flip OFF only for recipes that physically never
|
||||
produce that cert (passivation = no thickness,
|
||||
commodity ENP = no nadcap). -->
|
||||
<group string="Certificate Output"
|
||||
invisible="node_type != 'recipe'">
|
||||
<div class="alert alert-info" role="alert" colspan="2">
|
||||
<i class="fa fa-info-circle me-2"/>
|
||||
A recipe can only <strong>SUPPRESS</strong> certs
|
||||
the customer requested. Turn a toggle OFF for
|
||||
recipes that physically never produce that cert
|
||||
(e.g. passivation = thickness off; commodity ENP =
|
||||
nadcap off).
|
||||
</div>
|
||||
<group>
|
||||
<field name="requires_coc"
|
||||
widget="boolean_toggle"/>
|
||||
<field name="requires_thickness_report"
|
||||
widget="boolean_toggle"/>
|
||||
<field name="requires_nadcap_cert"
|
||||
widget="boolean_toggle"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="requires_mill_test"
|
||||
widget="boolean_toggle"/>
|
||||
<field name="requires_customer_specific"
|
||||
widget="boolean_toggle"/>
|
||||
</group>
|
||||
</group>
|
||||
<group>
|
||||
<group string="Tracking">
|
||||
<field name="create_date" string="Created"/>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -31,6 +31,18 @@
|
||||
<field name="x_fc_send_packing_slip" widget="boolean_toggle"/>
|
||||
<field name="x_fc_send_bol" widget="boolean_toggle"/>
|
||||
</group>
|
||||
<!-- Aerospace / Defence cert toggles (spec 2026-05-27).
|
||||
Default OFF; flip ON for aerospace customers that
|
||||
demand Nadcap / MTR / customer-specific cert
|
||||
alongside the standard CoC. -->
|
||||
<separator string="Aerospace / Defence" colspan="2"/>
|
||||
<group>
|
||||
<field name="x_fc_send_nadcap_cert" widget="boolean_toggle"/>
|
||||
<field name="x_fc_send_mill_test" widget="boolean_toggle"/>
|
||||
</group>
|
||||
<group>
|
||||
<field name="x_fc_send_customer_specific" widget="boolean_toggle"/>
|
||||
</group>
|
||||
</group>
|
||||
<separator string="Default CoC Contact"/>
|
||||
<p class="text-muted">
|
||||
|
||||
Reference in New Issue
Block a user