Files
Odoo-Modules/fusion_plating/fusion_plating_receiving/views/fp_receiving_menu.xml
gsinghpal ae256b4480 feat(fusion_plating_receiving): open Receiving menu to Technician + technician shipping ACLs
- Backend "Shipping & Receiving" menu lowered from Shop Manager to Technician
  (all higher roles inherit Technician, so none lose access).
- Technicians granted r/w/c on fp.outbound.package and the manual/generate
  label wizards — shipping parity with shop managers so they can generate
  outbound labels and manage packages in the backend.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-03 08:36:59 -04:00

60 lines
2.4 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2026 Nexa Systems Inc.
License OPL-1 (Odoo Proprietary License v1.0)
Part of the Fusion Plating product family.
-->
<odoo>
<!-- ===== Window actions (defined BEFORE menus) ===== -->
<record id="action_fp_receiving_pending" model="ir.actions.act_window">
<field name="name">Pending Inspection</field>
<field name="res_model">fp.receiving</field>
<field name="view_mode">list,form</field>
<field name="domain">[('state', '=', 'draft')]</field>
</record>
<record id="action_fp_receiving_discrepancy" model="ir.actions.act_window">
<field name="name">Discrepancies</field>
<field name="res_model">fp.receiving</field>
<field name="view_mode">list,form</field>
<field name="domain">[('state', '=', 'discrepancy')]</field>
</record>
<!-- ===== SHIPPING & RECEIVING — combined menu (v) ===== -->
<!-- Renamed from "Receiving & Inspection" so the same dock workflow -->
<!-- — parts coming in AND parts going out — lives in one place. -->
<!-- Logistics module reparents its 5 menu items under this root. -->
<!-- 2026-06-02: opened to Technician (was Shop Manager+) so technicians
can browse + edit receiving in the backend, not just the tablet card.
All higher roles imply Technician, so they keep access; sales-only
roles (no Technician) stay excluded. Children inherit this gate. -->
<menuitem id="menu_fp_receiving_root"
name="Shipping &amp; Receiving"
parent="fusion_plating.menu_fp_root"
sequence="15"
groups="fusion_plating.group_fp_technician"/>
<!-- Inbound (sequences 1030) -->
<menuitem id="menu_fp_receiving_all"
name="All Receiving"
parent="menu_fp_receiving_root"
action="action_fp_receiving"
sequence="10"/>
<menuitem id="menu_fp_receiving_pending"
name="Pending Inspection"
parent="menu_fp_receiving_root"
action="action_fp_receiving_pending"
sequence="20"/>
<menuitem id="menu_fp_receiving_discrepancy"
name="Discrepancies"
parent="menu_fp_receiving_root"
action="action_fp_receiving_discrepancy"
sequence="30"/>
<!-- Outbound items (4080) added by fusion_plating_logistics -->
</odoo>