From a7be88cd91ef86895218e7b72d5fed6c70b64069 Mon Sep 17 00:00:00 2001 From: Samuel Degueldre Date: Mon, 27 Jun 2022 06:05:20 +0000 Subject: [PATCH] [REF] hr_contract, web: give tooltip info as t-call-context Previously, we would use t-set to add the tooltip info under the key "info" in the rendering context, while this works fine, it was mostly just a workaround for the lack of support in owl for passing a rendering context to be used by the t-call directly. Since this is now supported in owl, the commit uses this feature for the tooltips and adapts the call sites. Part-of: odoo/odoo#92475 --- .../static/src/xml/hr_contract_templates.xml | 2 +- .../web/static/src/core/tooltip/tooltip.xml | 4 +- .../static/src/views/fields/field_tooltip.xml | 60 +++++++++---------- .../src/views/fields/image/image_field.xml | 2 +- .../src/views/kanban/kanban_renderer.js | 2 +- .../src/views/kanban/kanban_renderer.xml | 2 +- .../src/views/view_button/view_button.xml | 42 ++++++------- .../core/tooltip/tooltip_service_tests.js | 6 +- .../static/tests/views/kanban_view_tests.js | 2 +- 9 files changed, 60 insertions(+), 62 deletions(-) diff --git a/addons/hr_contract/static/src/xml/hr_contract_templates.xml b/addons/hr_contract/static/src/xml/hr_contract_templates.xml index c2c1eeb17f1..7f2f04aa538 100644 --- a/addons/hr_contract/static/src/xml/hr_contract_templates.xml +++ b/addons/hr_contract/static/src/xml/hr_contract_templates.xml @@ -3,7 +3,7 @@

+ t-esc="text"/>

diff --git a/addons/web/static/src/core/tooltip/tooltip.xml b/addons/web/static/src/core/tooltip/tooltip.xml index f1c83547117..bff6a9f28c7 100644 --- a/addons/web/static/src/core/tooltip/tooltip.xml +++ b/addons/web/static/src/core/tooltip/tooltip.xml @@ -3,9 +3,7 @@
- - - +
diff --git a/addons/web/static/src/views/fields/field_tooltip.xml b/addons/web/static/src/views/fields/field_tooltip.xml index b6241b848da..89fc7fe0e9b 100644 --- a/addons/web/static/src/views/fields/field_tooltip.xml +++ b/addons/web/static/src/views/fields/field_tooltip.xml @@ -3,63 +3,63 @@ -