fix(plating): Process Composer/Editor breadcrumb accumulation
Two separate issues were stacking up on the breadcrumb trail: 1. The composer was launching the tree editor with the name "Process Composer — …" — identical to its own label. The breadcrumb trail ended up showing "Process Composer / Process Composer" because both pages claimed the same name. Renamed the tree-editor instance to "Process Editor — …" so the two pages read distinctly. 2. Every "Back to part" click pushed a new entry onto the breadcrumb stack instead of resetting. After one round-trip the trail looked like "… / Composer / Editor / Part"; after two it was "… / Composer / Editor / Part / Composer / Editor / Part". Added clearBreadcrumbs: true to both back paths (composer's backToPart and tree-editor's onBackToList) so a RETURN action actually resets the stack. fusion_plating → 19.0.6.2.0 fusion_plating_configurator → 19.0.12.4.0 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
{
|
||||
'name': 'Fusion Plating',
|
||||
'version': '19.0.6.1.0',
|
||||
'version': '19.0.6.2.0',
|
||||
'category': 'Manufacturing/Plating',
|
||||
'summary': 'Core plating / metal finishing ERP: facilities, processes, tanks, baths, jobs, operators.',
|
||||
'description': """
|
||||
|
||||
@@ -428,6 +428,12 @@ export class RecipeTreeEditor extends Component {
|
||||
// If the editor was opened from the part-scoped Process Composer
|
||||
// (context carried part_id), return to that part's form instead
|
||||
// of the generic Recipes list.
|
||||
//
|
||||
// clearBreadcrumbs: this is a semantic RETURN, not a forward
|
||||
// navigation. Without it, every round-trip (part → composer →
|
||||
// editor → back) leaves its intermediate pages on the breadcrumb
|
||||
// stack, so a second visit shows "…/Process Composer/Process
|
||||
// Editor/Process Composer/Process Editor/Part" nonsense.
|
||||
if (this._partId) {
|
||||
this.action.doAction({
|
||||
type: "ir.actions.act_window",
|
||||
@@ -435,10 +441,14 @@ export class RecipeTreeEditor extends Component {
|
||||
res_id: this._partId,
|
||||
views: [[false, "form"]],
|
||||
target: "current",
|
||||
}, {
|
||||
clearBreadcrumbs: true,
|
||||
});
|
||||
return;
|
||||
}
|
||||
this.action.doAction("fusion_plating.action_fp_process_recipe");
|
||||
this.action.doAction("fusion_plating.action_fp_process_recipe", {
|
||||
clearBreadcrumbs: true,
|
||||
});
|
||||
}
|
||||
|
||||
onOpenForm(nodeId) {
|
||||
|
||||
Reference in New Issue
Block a user