From b6f2beb94329114304b25daa39d864cd059f17c1 Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Mon, 2 Jan 2023 09:41:30 +0000 Subject: [PATCH] [IMP] web: list aggregate tooltip positioning This commit moves the tooltip from the parent element of the list aggregate to the value itself to avoid having a tooltip that is not connected to its intended target (here the tootlip's arrow does not point at the value at all before this commit). Task-3106190 closes odoo/odoo#108894 Related: odoo/enterprise#35351 Signed-off-by: Aaron Bohy (aab) --- addons/web/static/src/views/list/list_renderer.xml | 4 ++-- addons/web/static/tests/views/list_view_tests.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/web/static/src/views/list/list_renderer.xml b/addons/web/static/src/views/list/list_renderer.xml index 0f90ed2577f..d843463bb86 100644 --- a/addons/web/static/src/views/list/list_renderer.xml +++ b/addons/web/static/src/views/list/list_renderer.xml @@ -78,8 +78,8 @@ - - + + diff --git a/addons/web/static/tests/views/list_view_tests.js b/addons/web/static/tests/views/list_view_tests.js index c48fd89a25d..8b652fc3f50 100644 --- a/addons/web/static/tests/views/list_view_tests.js +++ b/addons/web/static/tests/views/list_view_tests.js @@ -3418,7 +3418,7 @@ QUnit.module("Views", (hooks) => { }); assert.strictEqual( - target.querySelector('td[data-tooltip="Sum"]').innerText, + target.querySelector('span[data-tooltip="Sum"]').innerText, "32", "current total should be 32" ); @@ -3427,7 +3427,7 @@ QUnit.module("Views", (hooks) => { await editInput(target, "td.o_data_cell input", "15"); assert.strictEqual( - target.querySelector('td[data-tooltip="Sum"]').innerText, + target.querySelector('span[data-tooltip="Sum"]').innerText, "37", "current total should be 37" );