Phase D Tasks D1-D4 of permissions overhaul. Adds explicit groups= attributes to: - 9 top-level Plating menus (matrix per spec Section 2.E) - Quality submenus: Audits, Customer Specs, AVL → QM-only - Compliance hub child submenus (CGP, General, Safety, Aerospace, Nuclear) → QM-only - Operations submenus: Maintenance, Move Log, Labor History → Shop Manager+; Replenishment Suggestions → Manager+ Replaces fragile inheritance + action-ACL-based visibility with explicit per-menu gates. Now every role's menu tree is deterministic. Also adds fusion_plating/tests/test_menu_visibility.py — per-role matrix tests using ir.ui.menu.search_count with the test user. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
48 lines
1.5 KiB
XML
48 lines
1.5 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.
|
|
-->
|
|
<odoo>
|
|
|
|
<!-- Phase 1 — re-parented under Plating → Compliance hub. -->
|
|
<!-- Phase D (perms v2) — QM-only under compliance hub. -->
|
|
<menuitem id="menu_fp_aerospace"
|
|
name="Aerospace (AS9100 / Nadcap)"
|
|
parent="fusion_plating.menu_fp_compliance_hub"
|
|
sequence="30"
|
|
groups="fusion_plating.group_fp_quality_manager"/>
|
|
|
|
<menuitem id="menu_fp_aerospace_as9100"
|
|
name="AS9100 Clauses"
|
|
parent="menu_fp_aerospace"
|
|
action="action_fp_as9100_clause"
|
|
sequence="10"/>
|
|
|
|
<menuitem id="menu_fp_aerospace_nadcap"
|
|
name="Nadcap Audits"
|
|
parent="menu_fp_aerospace"
|
|
action="action_fp_nadcap_audit"
|
|
sequence="20"/>
|
|
|
|
<menuitem id="menu_fp_aerospace_counterfeit"
|
|
name="Counterfeit Log"
|
|
parent="menu_fp_aerospace"
|
|
action="action_fp_counterfeit"
|
|
sequence="30"/>
|
|
|
|
<menuitem id="menu_fp_aerospace_config_items"
|
|
name="Configuration Items"
|
|
parent="menu_fp_aerospace"
|
|
action="action_fp_config_item"
|
|
sequence="40"/>
|
|
|
|
<menuitem id="menu_fp_aerospace_risk"
|
|
name="Risk Register"
|
|
parent="menu_fp_aerospace"
|
|
action="action_fp_risk"
|
|
sequence="50"/>
|
|
|
|
</odoo>
|