This commit is contained in:
gsinghpal
2026-05-01 00:20:40 -04:00
parent bdcbd86db2
commit 1da27ed6bf
8 changed files with 117 additions and 12 deletions

View File

@@ -217,6 +217,18 @@ export class FpPartProcessComposer extends Component {
}
backToPart() {
// Pop this composer off the action stack and restore the
// previous controller (the part form the user came from).
// Preserves the full breadcrumb trail — clearBreadcrumbs: true
// would wipe parent crumbs (e.g. "Parts > 2144A6201-105").
// Falls back to the part form only when restore() throws (e.g.
// composer opened directly via URL with no prior crumb).
try {
this.action.restore();
return;
} catch (e) {
// No prior controller — fall through to the part form.
}
this.action.doAction({
type: "ir.actions.act_window",
res_model: "fp.part.catalog",