Files
Odoo-Modules/fusion_plating/fusion_plating_safety/__manifest__.py
gsinghpal 8eb2c2de95 refactor(plating-sec): sweep all ACL CSVs to new role group xmlids
Phase B of permissions overhaul. Mechanical text replacement across
11 ir.model.access.csv files:
  - group_fusion_plating_operator    -> fusion_plating.group_fp_technician
  - group_fusion_plating_supervisor  -> fusion_plating.group_fp_shop_manager_v2
  - group_fusion_plating_manager     -> fusion_plating.group_fp_manager
  - group_fusion_plating_admin       -> fusion_plating.group_fp_owner
  - group_fp_estimator (configurator)-> fusion_plating.group_fp_sales_rep
  - group_fp_accounting              -> fusion_plating.group_fp_manager
  - group_fp_receiving               -> fusion_plating.group_fp_shop_manager_v2
  - group_fp_shop_manager (legacy)   -> fusion_plating.group_fp_manager
  - group_fusion_plating_cgp_officer -> fusion_plating.group_fp_quality_manager
  - group_fusion_plating_cgp_designated_official -> fusion_plating.group_fp_owner

Backward-compat: old group xmlids still resolve (Phase A's implied_ids
chains keep old ACLs working for users still holding old groups).
This sweep ensures future-state correctness: when old groups are deleted
after the 30-day rollback window, ACLs continue resolving via the new
group xmlids.

Also adds fusion_plating/tests/test_acl_migration.py with sample-based
per-role access checks. The 2 CAPA tests are expected to fail until
Phase C implements the Manager/QM quality split.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-24 01:14:02 -04:00

92 lines
3.4 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 — Safety (EHS)',
'version': '19.0.1.3.1',
'category': 'Manufacturing/Plating',
'summary': 'Occupational health and safety for plating shops: SDS library, '
'WHMIS/TDG training, exposure monitoring, JHSC, incidents, PPE, '
'chemical inventory.',
'description': """
Fusion Plating — Safety (EHS)
=============================
Part of the Fusion Plating product family by Nexa Systems Inc.
This add-on layers a process-agnostic Environmental, Health and Safety
workspace on top of the core Fusion Plating module. It gives a plating
shop a single place to manage day-to-day safety obligations of running a
metal-finishing facility without depending on any jurisdiction-specific
regulatory pack.
Included workspaces
-------------------
* SDS Library — Safety Data Sheet repository with version, hazard class,
GHS pictograms, language, expiry tracking and PDF attachment.
* Chemical Inventory — physical chemical containers with storage location,
on-hand quantity, reorder point and incompatibility relations.
* Training Matrix — training type catalogue (WHMIS, TDG, first-aid, LOTO,
confined space, etc.) plus per-employee records with auto-computed
expiry and current/expiring/expired status.
* Exposure Monitoring — air sampling, biological, noise and vibration
monitoring events with OEL reference, percent-of-limit and result
classification.
* JHSC — Joint Health & Safety Committee with worker and management
representatives, plus a meeting register with agenda, minutes and
action items.
* Incident Register — injury, near-miss, first-aid, lost-time, medical,
property damage and environmental events with investigation, root
cause, corrective action, WSIB Form 7 flagging and lost-time tracking.
* PPE Issuance — per-employee personal protective equipment issuance log
with replacement scheduling.
Designed to slot in alongside jurisdiction-specific compliance packs
(fusion_plating_compliance_on, fusion_plating_compliance_tor) without
duplicating their content.
Copyright (c) 2026 Nexa Systems Inc. All rights reserved.
""",
'author': 'Nexa Systems Inc.',
'website': 'https://www.nexasystems.ca',
'maintainer': 'Nexa Systems Inc.',
'support': 'support@nexasystems.ca',
'license': 'OPL-1',
'price': 0.00,
'currency': 'CAD',
'depends': [
'fusion_plating',
'hr',
'product',
],
'data': [
'security/fp_safety_security.xml',
'security/ir.model.access.csv',
'data/fp_sequence_data.xml',
'data/fp_training_type_data.xml',
'views/fp_sds_views.xml',
'views/fp_chemical_views.xml',
'views/fp_training_type_views.xml',
'views/fp_training_record_views.xml',
'views/fp_exposure_monitoring_views.xml',
'views/fp_jhsc_views.xml',
'views/fp_incident_views.xml',
'views/fp_ppe_issuance_views.xml',
'views/hr_employee_views.xml',
'views/fp_menu.xml',
],
'demo': [
'data/fp_demo_safety_data.xml',
],
'assets': {
'web.assets_backend': [
'fusion_plating_safety/static/src/scss/fusion_plating_safety.scss',
],
},
'installable': True,
'application': False,
'auto_install': False,
}