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>
3.3 KiB
3.3 KiB
| 1 | id | name | model_id:id | group_id:id | perm_read | perm_write | perm_create | perm_unlink |
|---|---|---|---|---|---|---|---|---|
| 2 | access_fp_receiving_operator | fp.receiving.operator | model_fp_receiving | fusion_plating.group_fp_technician | 1 | 0 | 0 | 0 |
| 3 | access_fp_receiving_receiver | fp.receiving.receiver | model_fp_receiving | fusion_plating.group_fp_shop_manager_v2 | 1 | 1 | 1 | 0 |
| 4 | access_fp_receiving_manager | fp.receiving.manager | model_fp_receiving | fusion_plating.group_fp_manager | 1 | 1 | 1 | 1 |
| 5 | access_fp_receiving_line_operator | fp.receiving.line.operator | model_fp_receiving_line | fusion_plating.group_fp_technician | 1 | 0 | 0 | 0 |
| 6 | access_fp_receiving_line_receiver | fp.receiving.line.receiver | model_fp_receiving_line | fusion_plating.group_fp_shop_manager_v2 | 1 | 1 | 1 | 0 |
| 7 | access_fp_receiving_line_manager | fp.receiving.line.manager | model_fp_receiving_line | fusion_plating.group_fp_manager | 1 | 1 | 1 | 1 |
| 8 | access_fp_receiving_damage_operator | fp.receiving.damage.operator | model_fp_receiving_damage | fusion_plating.group_fp_technician | 1 | 0 | 0 | 0 |
| 9 | access_fp_receiving_damage_receiver | fp.receiving.damage.receiver | model_fp_receiving_damage | fusion_plating.group_fp_shop_manager_v2 | 1 | 1 | 1 | 0 |
| 10 | access_fp_receiving_damage_manager | fp.receiving.damage.manager | model_fp_receiving_damage | fusion_plating.group_fp_manager | 1 | 1 | 1 | 1 |
| 11 | access_fp_racking_inspection_operator | fp.racking.inspection.operator | model_fp_racking_inspection | fusion_plating.group_fp_technician | 1 | 1 | 1 | 0 |
| 12 | access_fp_racking_inspection_supervisor | fp.racking.inspection.supervisor | model_fp_racking_inspection | fusion_plating.group_fp_shop_manager_v2 | 1 | 1 | 1 | 0 |
| 13 | access_fp_racking_inspection_manager | fp.racking.inspection.manager | model_fp_racking_inspection | fusion_plating.group_fp_manager | 1 | 1 | 1 | 1 |
| 14 | access_fp_racking_inspection_line_operator | fp.racking.inspection.line.operator | model_fp_racking_inspection_line | fusion_plating.group_fp_technician | 1 | 1 | 1 | 1 |
| 15 | access_fp_racking_inspection_line_supervisor | fp.racking.inspection.line.supervisor | model_fp_racking_inspection_line | fusion_plating.group_fp_shop_manager_v2 | 1 | 1 | 1 | 1 |
| 16 | access_fp_racking_inspection_line_manager | fp.racking.inspection.line.manager | model_fp_racking_inspection_line | fusion_plating.group_fp_manager | 1 | 1 | 1 | 1 |
| 17 | access_fp_label_manual_wizard_receiver | fp.label.manual.wizard.receiver | model_fp_label_manual_wizard | fusion_plating.group_fp_shop_manager_v2 | 1 | 1 | 1 | 1 |
| 18 | access_fp_label_manual_wizard_supervisor | fp.label.manual.wizard.supervisor | model_fp_label_manual_wizard | fusion_plating.group_fp_shop_manager_v2 | 1 | 1 | 1 | 1 |
| 19 | access_fp_label_manual_wizard_manager | fp.label.manual.wizard.manager | model_fp_label_manual_wizard | fusion_plating.group_fp_manager | 1 | 1 | 1 | 1 |
| 20 | access_fp_label_generate_wizard_receiver | fp.label.generate.wizard.receiver | model_fp_label_generate_wizard | fusion_plating.group_fp_shop_manager_v2 | 1 | 1 | 1 | 1 |
| 21 | access_fp_label_generate_wizard_supervisor | fp.label.generate.wizard.supervisor | model_fp_label_generate_wizard | fusion_plating.group_fp_shop_manager_v2 | 1 | 1 | 1 | 1 |
| 22 | access_fp_label_generate_wizard_manager | fp.label.generate.wizard.manager | model_fp_label_generate_wizard | fusion_plating.group_fp_manager | 1 | 1 | 1 | 1 |
| 23 | access_fp_outbound_package_receiver | fp.outbound.package.receiver | model_fp_outbound_package | fusion_plating.group_fp_shop_manager_v2 | 1 | 1 | 1 | 1 |
| 24 | access_fp_outbound_package_supervisor | fp.outbound.package.supervisor | model_fp_outbound_package | fusion_plating.group_fp_shop_manager_v2 | 1 | 1 | 1 | 1 |
| 25 | access_fp_outbound_package_manager | fp.outbound.package.manager | model_fp_outbound_package | fusion_plating.group_fp_manager | 1 | 1 | 1 | 1 |