Skip to Content
OWL data_display

Breadcrumbs

Odoo 19 OWL component — Breadcrumbs (search)

Live preview Interactive
Source excerpt web/static/src/search/breadcrumbs/breadcrumbs.js
import { Component } from "@odoo/owl";
import { Dropdown } from "@web/core/dropdown/dropdown";
import { DropdownItem } from "@web/core/dropdown/dropdown_item";
import { _t } from "@web/core/l10n/translation";

export class Breadcrumbs extends Component {
    static template = "web.Breadcrumbs";
    static components = { Dropdown, DropdownItem };
    static props = {
        breadcrumbs: Array,
        slots: { type: Object, optional: true },
    };

    getBreadcrumbTooltip({ isFormView, name }) {
        if (isFormView) {
            return _t("Back to “%s” form", name);
        }
        return _t("Back to “%s”", name);
    }
}
Registry / API
Registry name
Breadcrumbs
Category
Module
web
Slug
breadcrumbs
Nav group
data_display