From cfb1a65fc2bf0095d02e1a555222258f10dc07c1 Mon Sep 17 00:00:00 2001 From: Bruno Boi Date: Mon, 13 Sep 2021 10:11:45 +0000 Subject: [PATCH] [FIX] web: make tooltips for the view switcher consistent across views With the new OWL view infrastructure introduced by 0134495, tooltips for the view switcher are not consistent across the different views. The converted views show a popover component, the legacy views show a browser tooltip. After this commit, the view switcher's tooltips are always a popover component. closes odoo/odoo#76444 X-original-commit: ad7db83e6dcf4c124234a3c611b84012f898acd0 Signed-off-by: Aaron Bohy (aab) Signed-off-by: Bruno Boi --- addons/web/static/src/legacy/xml/base.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/web/static/src/legacy/xml/base.xml b/addons/web/static/src/legacy/xml/base.xml index 1566f937931..c2f981e0e61 100644 --- a/addons/web/static/src/legacy/xml/base.xml +++ b/addons/web/static/src/legacy/xml/base.xml @@ -657,8 +657,7 @@ t-attf-class="btn btn-secondary fa fa-lg o_switch_view o_{{ view.type }} {{ view.icon }}" t-att-class="{ active: env.view.type === view.type }" t-att-aria-label="sprintf(buttonLabel.toString(), view.type)" - t-att-title="sprintf(buttonLabel.toString(), view.type)" - data-toggle="tooltip" + t-att-data-tooltip="view.name" tabindex="-1" t-on-click="trigger('switch-view', { view_type: view.type })" />