fp.receiving simplifies to box-count-only (new primary state machine: draft → counted → staged → closed). Legacy inspecting/accepted/discrepancy/resolved states stay in the Selection so existing records load without error but are surfaced behind a manager-only toggle. New box_count_in field + banner that tells the receiver "count boxes only — parts are inspected by the racking crew." New fp.racking.inspection + fp.racking.inspection.line models — one record per MO, auto-created by mrp.production.create() with one line per contributing SO line (qty_expected seeded, qty_found + condition filled in by the racking crew when they open the boxes). State: draft → inspecting → done | discrepancy_flagged (flagged when any line has a non-ok condition or qty variance). Reopen restricted to Plating Manager. WO soft gate: first plating WO button_start raises a UserError when the MO's racking inspection is still Draft or Inspecting. Plating Manager bypasses; later WOs are not gated. fp.delivery gains x_fc_box_count_out. action_mark_delivered calls _fp_check_box_parity which posts a non-blocking chatter warning when boxes out ≠ boxes in (resolved via job_ref → MO.origin → SO → receiving). Warning only — never blocks shipping. Menu entry: Plating → Operations → Racking Inspection. Module version bumps: fusion_plating_receiving → 19.0.3.0.0 fusion_plating_logistics → 19.0.3.0.0 fusion_plating_bridge_mrp → 19.0.12.0.0 (+depends receiving) Smoke on entech: 12/12 assertions pass (one gate test skipped — MO had no WOs to test) including box-count state machine, inspection auto-create, lifecycle, discrepancy flag, and box-parity chatter. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2.1 KiB
2.1 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_fusion_plating_operator | 1 | 0 | 0 | 0 |
| 3 | access_fp_receiving_receiver | fp.receiving.receiver | model_fp_receiving | group_fp_receiving | 1 | 1 | 1 | 0 |
| 4 | access_fp_receiving_manager | fp.receiving.manager | model_fp_receiving | fusion_plating.group_fusion_plating_manager | 1 | 1 | 1 | 1 |
| 5 | access_fp_receiving_line_operator | fp.receiving.line.operator | model_fp_receiving_line | fusion_plating.group_fusion_plating_operator | 1 | 0 | 0 | 0 |
| 6 | access_fp_receiving_line_receiver | fp.receiving.line.receiver | model_fp_receiving_line | group_fp_receiving | 1 | 1 | 1 | 0 |
| 7 | access_fp_receiving_line_manager | fp.receiving.line.manager | model_fp_receiving_line | fusion_plating.group_fusion_plating_manager | 1 | 1 | 1 | 1 |
| 8 | access_fp_receiving_damage_operator | fp.receiving.damage.operator | model_fp_receiving_damage | fusion_plating.group_fusion_plating_operator | 1 | 0 | 0 | 0 |
| 9 | access_fp_receiving_damage_receiver | fp.receiving.damage.receiver | model_fp_receiving_damage | group_fp_receiving | 1 | 1 | 1 | 0 |
| 10 | access_fp_receiving_damage_manager | fp.receiving.damage.manager | model_fp_receiving_damage | fusion_plating.group_fusion_plating_manager | 1 | 1 | 1 | 1 |
| 11 | access_fp_racking_inspection_operator | fp.racking.inspection.operator | model_fp_racking_inspection | fusion_plating.group_fusion_plating_operator | 1 | 1 | 1 | 0 |
| 12 | access_fp_racking_inspection_supervisor | fp.racking.inspection.supervisor | model_fp_racking_inspection | fusion_plating.group_fusion_plating_supervisor | 1 | 1 | 1 | 0 |
| 13 | access_fp_racking_inspection_manager | fp.racking.inspection.manager | model_fp_racking_inspection | fusion_plating.group_fusion_plating_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_fusion_plating_operator | 1 | 1 | 1 | 1 |
| 15 | access_fp_racking_inspection_line_supervisor | fp.racking.inspection.line.supervisor | model_fp_racking_inspection_line | fusion_plating.group_fusion_plating_supervisor | 1 | 1 | 1 | 1 |
| 16 | access_fp_racking_inspection_line_manager | fp.racking.inspection.line.manager | model_fp_racking_inspection_line | fusion_plating.group_fusion_plating_manager | 1 | 1 | 1 | 1 |