Files
Odoo-Modules/fusion_plating/fusion_plating_compliance/__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

47 lines
1.7 KiB
Python

# -*- coding: utf-8 -*-
# Copyright 2026 Nexa Systems Inc.
# License OPL-1 (Odoo Proprietary License v1.0)
{
'name': 'Fusion Plating - Compliance (Framework)',
'version': '19.0.1.3.2',
'category': 'Manufacturing/Plating',
'summary': 'Jurisdiction-agnostic compliance framework: permits, discharge monitoring, waste manifests, pollutant inventory, compliance calendar, spill register.',
'description': 'Generic compliance framework. Region packs load jurisdiction-specific data.',
'author': 'Nexa Systems Inc.',
'website': 'https://www.nexasystems.ca',
'license': 'OPL-1',
'price': 0.00,
'currency': 'CAD',
'depends': ['fusion_plating'],
'data': [
'security/fp_compliance_security.xml',
'security/ir.model.access.csv',
'data/fp_sequence_data.xml',
'data/fp_jurisdiction_data.xml',
'data/fp_regulator_data.xml',
'views/fp_jurisdiction_views.xml',
'views/fp_regulator_views.xml',
'views/fp_permit_views.xml',
'views/fp_discharge_limit_views.xml',
'views/fp_discharge_sample_views.xml',
'views/fp_waste_stream_views.xml',
'views/fp_waste_manifest_views.xml',
'views/fp_pollutant_inventory_views.xml',
'views/fp_compliance_event_views.xml',
'views/fp_spill_register_views.xml',
'views/fp_facility_views.xml',
'views/fp_menu.xml',
],
'demo': [
'data/fp_demo_compliance_data.xml',
],
'assets': {
'web.assets_backend': [
'fusion_plating_compliance/static/src/scss/fusion_plating_compliance.scss',
],
},
'installable': True,
'application': False,
'auto_install': False,
}