refactor(menus): collapse separate Jobs submenu into Shop Floor
Move 'All Jobs' and 'Steps' under fusion_plating_shopfloor's
existing 'Shop Floor' submenu (between Tablet Station and Bake
Windows). The standalone 'Jobs' parent menu is gone — it was
redundant once the operator UIs (Plant Overview / Tablet /
Manager Desk) consolidated under Shop Floor.
Final structure under Plating:
Sales / *
Configurator / *
Shop Floor
Manager Desk
Plant Overview
Tablet Station
All Jobs ← moved here (seq 15)
Steps ← moved here (seq 17, supervisor+)
Bake Windows
First-Piece Gates
Receiving & Inspection
Operations / *
Configuration → Work Centres (manager)
...rest
Work Centres stays under Configuration (no shopfloor equivalent).
New menu file lives in fusion_plating_jobs/views (jobs depends on
shopfloor; core can't reference shopfloor xmlids).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,28 +1,11 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<odoo>
|
<odoo>
|
||||||
<!-- Native job model menus, top of the Plating app. Sequence 2
|
<!-- Native job model — admin/manager menus.
|
||||||
puts this right after the (currently unbuilt) dashboard slot
|
|
||||||
and before Sales — operators and managers reach Jobs in one
|
|
||||||
click. -->
|
|
||||||
|
|
||||||
<menuitem id="menu_fp_jobs_native_root"
|
"All Jobs" and "Steps" used to live under a separate "Jobs"
|
||||||
name="Jobs"
|
submenu but the user moved them under Shop Floor instead
|
||||||
parent="menu_fp_root"
|
(see fusion_plating_jobs/views/jobs_in_shopfloor_menu.xml).
|
||||||
sequence="2"
|
Only Work Centres stays in core (under Configuration). -->
|
||||||
groups="fusion_plating.group_fusion_plating_operator"/>
|
|
||||||
|
|
||||||
<menuitem id="menu_fp_jobs_jobs"
|
|
||||||
name="All Jobs"
|
|
||||||
parent="menu_fp_jobs_native_root"
|
|
||||||
action="action_fp_job"
|
|
||||||
sequence="20"/>
|
|
||||||
|
|
||||||
<menuitem id="menu_fp_jobs_steps"
|
|
||||||
name="Steps"
|
|
||||||
parent="menu_fp_jobs_native_root"
|
|
||||||
action="action_fp_job_step"
|
|
||||||
sequence="30"
|
|
||||||
groups="fusion_plating.group_fusion_plating_supervisor"/>
|
|
||||||
|
|
||||||
<menuitem id="menu_fp_jobs_work_centres"
|
<menuitem id="menu_fp_jobs_work_centres"
|
||||||
name="Work Centres"
|
name="Work Centres"
|
||||||
|
|||||||
@@ -54,6 +54,7 @@ full design rationale and §6.2 of the implementation plan for task list.
|
|||||||
'security/ir.model.access.csv',
|
'security/ir.model.access.csv',
|
||||||
'views/res_config_settings_views.xml',
|
'views/res_config_settings_views.xml',
|
||||||
'views/fp_job_form_inherit.xml',
|
'views/fp_job_form_inherit.xml',
|
||||||
|
'views/jobs_in_shopfloor_menu.xml',
|
||||||
'views/legacy_menu_hide.xml',
|
'views/legacy_menu_hide.xml',
|
||||||
'report/report_fp_job_sticker.xml',
|
'report/report_fp_job_sticker.xml',
|
||||||
'report/report_fp_job_traveller.xml',
|
'report/report_fp_job_traveller.xml',
|
||||||
|
|||||||
@@ -0,0 +1,24 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<odoo>
|
||||||
|
<!--
|
||||||
|
Add "All Jobs" and "Steps" as children of fusion_plating_shopfloor's
|
||||||
|
Shop Floor menu. We can reference shopfloor's xmlid here because
|
||||||
|
fusion_plating_jobs declares it as a depend.
|
||||||
|
|
||||||
|
Sequences fit between Tablet Station (10) and Bake Windows (20)
|
||||||
|
in shopfloor's existing fp_menu.xml.
|
||||||
|
-->
|
||||||
|
|
||||||
|
<menuitem id="menu_fp_jobs_all_jobs"
|
||||||
|
name="All Jobs"
|
||||||
|
parent="fusion_plating_shopfloor.menu_fp_shopfloor"
|
||||||
|
action="fusion_plating.action_fp_job"
|
||||||
|
sequence="15"/>
|
||||||
|
|
||||||
|
<menuitem id="menu_fp_jobs_steps"
|
||||||
|
name="Steps"
|
||||||
|
parent="fusion_plating_shopfloor.menu_fp_shopfloor"
|
||||||
|
action="fusion_plating.action_fp_job_step"
|
||||||
|
sequence="17"
|
||||||
|
groups="fusion_plating.group_fusion_plating_supervisor"/>
|
||||||
|
</odoo>
|
||||||
Reference in New Issue
Block a user