From 742b4954a2facb7727006df1eb134ca6589b273f Mon Sep 17 00:00:00 2001 From: Hardik Prajapati Date: Mon, 18 Oct 2021 09:00:13 +0000 Subject: [PATCH] [FIX] account: reposition tooltip indication Currently, hovering on the tooltip displays some content out of the viewport. It happens because tooltip content div requires 270px width to display the text and the distance between the tour indicator and viewport is less than 270px so this commit fixes the issue by changing the position of the tooltip indicator from left to the top so that the tooltip indicator displays top of the element and hovering on it displays the full content TaskID-2667140 closes odoo/odoo#79129 X-original-commit: 219d4aa27fbae944af6e18216b7bb96277b3d06d Related: odoo/enterprise#21946 Signed-off-by: Laurent Smet --- addons/account/static/src/js/tours/account.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/account/static/src/js/tours/account.js b/addons/account/static/src/js/tours/account.js index 2ade669e626..734aac90eee 100644 --- a/addons/account/static/src/js/tours/account.js +++ b/addons/account/static/src/js/tours/account.js @@ -20,7 +20,7 @@ tour.register('account_tour', { trigger: "button[name=action_save_onboarding_company_step]", extra_trigger: "a.o_onboarding_step_action[data-method=action_open_base_onboarding_company]", content: _t("Looks good. Let's continue."), - position: "left", + position: "bottom", }, { trigger: "a.o_onboarding_step_action[data-method=action_open_base_document_layout]", content: _t("Customize your layout."), @@ -29,7 +29,7 @@ tour.register('account_tour', { trigger: "button[name=document_layout_save]", extra_trigger: "a.o_onboarding_step_action[data-method=action_open_base_document_layout]", content: _t("Once everything is as you want it, validate."), - position: "left", + position: "top", }, { trigger: "a.o_onboarding_step_action[data-method=action_open_account_onboarding_create_invoice]", content: _t("Now, we'll create your first invoice."), @@ -87,7 +87,7 @@ tour.register('account_tour', { trigger: "button[name=send_and_print_action]", extra_trigger: "[name=move_type][raw-value=out_invoice]", content: _t("Let's send the invoice."), - position: "left" + position: "top" } ]);