feat(fusion_plating_shopfloor): rewire menus to Shop Floor Landing (P3.5)

Plan task P3.5. Single 'Workstation' menu item replaces both the
legacy 'Tablet Station' and 'Plant Overview' entries. The new
fp_shopfloor_landing component has a Station/All-Plant toggle so
one menu covers both old surfaces.

Old action records redirected for back-compat (so existing bookmarks
+ smart-button references keep working):

  action_fp_shopfloor_tablet  tag → fp_shopfloor_landing
  action_fp_plant_overview    tag → fp_shopfloor_landing
                              params → {'mode': 'all_plant'}

The legacy OWL components (fp_shopfloor_tablet, fp_plant_overview)
remain registered — no code removed, just no menu points at them.
Phase 5 cleanup will remove the OWL components after a release of
soak time on entech.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
gsinghpal
2026-05-22 22:10:36 -04:00
parent 7f70785b79
commit 2a0d1862df
3 changed files with 20 additions and 12 deletions

View File

@@ -26,14 +26,12 @@
sequence="3"
groups="fusion_plating.group_fusion_plating_manager"/>
<menuitem id="menu_fp_shopfloor_plant_overview"
name="Plant Overview"
parent="menu_fp_shopfloor"
action="action_fp_plant_overview"
sequence="5"/>
<!-- Phase 3 tablet redesign — single Workstation menu entry replaces
the legacy "Tablet Station" + "Plant Overview" pair. The new
fp_shopfloor_landing component has a Station/All-Plant toggle
so one menu item covers both old surfaces. -->
<menuitem id="menu_fp_shopfloor_tablet"
name="Tablet Station"
name="Workstation"
parent="menu_fp_shopfloor"
action="action_fp_shopfloor_tablet"
sequence="10"/>

View File

@@ -7,11 +7,17 @@
<odoo>
<!-- ================================================================== -->
<!-- Client action — Plant Overview Dashboard -->
<!-- Client action — was "Plant Overview" (fp_plant_overview). -->
<!-- Phase 3 tablet redesign retargets the tag at the new -->
<!-- fp_shopfloor_landing component (it has an "All Plant" mode that -->
<!-- supersedes the standalone plant overview). Old bookmarks keep -->
<!-- working; the legacy fp_plant_overview OWL component is still -->
<!-- registered. Menu entry removed in fp_menu.xml. -->
<!-- ================================================================== -->
<record id="action_fp_plant_overview" model="ir.actions.client">
<field name="name">Plant Overview</field>
<field name="tag">fp_plant_overview</field>
<field name="tag">fp_shopfloor_landing</field>
<field name="params" eval="{'mode': 'all_plant'}"/>
</record>
<!-- ================================================================== -->

View File

@@ -89,11 +89,15 @@
</record>
<!-- ================================================================== -->
<!-- Client action that launches the OWL tablet component -->
<!-- Client action — was "Tablet Station" (fp_shopfloor_tablet). -->
<!-- Phase 3 tablet redesign retargets the tag at the new -->
<!-- fp_shopfloor_landing component so old bookmarks keep working. -->
<!-- The legacy fp_shopfloor_tablet OWL component is still registered -->
<!-- (no code removed) but no menu points at it anymore. -->
<!-- ================================================================== -->
<record id="action_fp_shopfloor_tablet" model="ir.actions.client">
<field name="name">Tablet Station</field>
<field name="tag">fp_shopfloor_tablet</field>
<field name="name">Shop Floor</field>
<field name="tag">fp_shopfloor_landing</field>
</record>
</odoo>