Files
Odoo-Modules/fusion_plating/fusion_plating_kpi/views/fp_menu.xml
gsinghpal 5f6c7af2a7 feat(phase3): tighten group-gating on operator-irrelevant top-levels
Three targeted gates so operators no longer see admin/audit views:

- KPIs (menu_fp_dashboard) → supervisor+. Operators don't need
  dashboards; their tablet shows what they need to do next.
- Move Log (menu_fp_job_step_move) → supervisor+. Operators see
  their own moves on the tablet; this top-level menu is the
  audit-of-everyone-else view.
- Replenishment Suggestions (menu_fp_replenishment_suggestions) →
  supervisor+. Purchasing decision, not operator concern.

Other top-levels were already correctly gated:
- Sales / Configurator → estimator
- Shipping & Receiving → group_fp_receiving
- Compliance hub → supervisor+
- Configuration → manager
- Shop Floor / Quality → operator (correctly visible to floor staff)
- Operations parent stays open; child menus enforce per-action gates

Net effect: a fresh operator now sees ~5 top-level menus instead of
the previous ~10. Supervisors see ~8. Managers see all.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-27 22:51:30 -04:00

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 3 — supervisor+ only. Operators don't need dashboards. -->
<menuitem id="menu_fp_dashboard"
name="KPIs"
parent="fusion_plating.menu_fp_root"
sequence="85"
groups="fusion_plating.group_fusion_plating_supervisor"/>
<menuitem id="menu_fp_kpis"
name="KPIs"
parent="menu_fp_dashboard"
action="action_fp_kpi"
sequence="10"/>
<menuitem id="menu_fp_kpi_history"
name="KPI History"
parent="menu_fp_dashboard"
action="action_fp_kpi_value"
sequence="20"/>
<!-- ===== Dashboard Category Actions ===== -->
<menuitem id="menu_fp_kpi_production"
name="Production KPIs"
parent="menu_fp_dashboard"
action="action_fp_kpi_dashboard_production"
sequence="30"/>
<menuitem id="menu_fp_kpi_quality"
name="Quality KPIs"
parent="menu_fp_dashboard"
action="action_fp_kpi_dashboard_quality"
sequence="40"/>
<menuitem id="menu_fp_kpi_finance"
name="Sales &amp; Finance"
parent="menu_fp_dashboard"
action="action_fp_kpi_dashboard_finance"
sequence="50"/>
</odoo>