Files
Odoo-Modules/fusion_plating/fusion_plating_kpi/__manifest__.py
gsinghpal 36cd4341a7 feat(plating-menu): Layer 1+2 — explicit groups on top-level menus + submenus
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>
2026-05-24 01:35:11 -04:00

35 lines
1.0 KiB
Python

# -*- coding: utf-8 -*-
# Copyright 2026 Nexa Systems Inc.
# License OPL-1 (Odoo Proprietary License v1.0)
# Part of the Fusion Plating product family.
{
'name': 'Fusion Plating — KPI Dashboard',
'version': '19.0.1.1.2',
'category': 'Manufacturing/Plating',
'summary': 'Configurable KPI dashboards for plating operations.',
'author': 'Nexa Systems Inc.',
'website': 'https://www.nexasystems.ca',
'maintainer': 'Nexa Systems Inc.',
'support': 'support@nexasystems.ca',
'license': 'OPL-1',
'depends': [
'fusion_plating',
'fusion_plating_portal',
'fusion_plating_quality',
],
'data': [
'security/fp_kpi_security.xml',
'security/ir.model.access.csv',
'views/fp_kpi_views.xml',
'views/fp_kpi_value_views.xml',
'views/fp_kpi_dashboard_views.xml',
'views/fp_menu.xml',
'data/fp_kpi_builtin_data.xml',
'data/fp_kpi_cron_data.xml',
],
'installable': True,
'auto_install': False,
'application': False,
}