[FIX] account, purchase, sale: reposition tooltip to avoid resize flicker

The tour bubble "animation" that makes it to bounce up and down can cause
issues when its position is at the edge of the bottom of the screen.

In the sale tour, this would make the window constantly resize to show a
scrollbar and then resize to hide the scrollbar, creating quite a sickening
effect visually.

closes odoo/odoo#72485

Task-id: 2480195
X-original-commit: 8511d2352776a63fa2483dafac91a496d45461c1
Related: odoo/enterprise#19147
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
Prakash Prajapati
2021-06-21 18:11:31 +00:00
committed by Victor Feyens
parent e566844378
commit 30296026f9
3 changed files with 5 additions and 2 deletions
@@ -19,6 +19,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",
}, {
trigger: "a.o_onboarding_step_action[data-method=action_open_base_document_layout]",
content: _t("Customize your layout."),
@@ -27,6 +28,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",
}, {
trigger: "a.o_onboarding_step_action[data-method=action_open_account_onboarding_create_invoice]",
content: _t("Now, we'll create your first invoice."),
@@ -84,6 +86,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"
}
]);
@@ -112,7 +112,7 @@ tour.register('purchase_tour' , {
trigger: ".modal-footer button[name='action_send_mail']",
extra_trigger: ".modal-footer button[name='action_send_mail']",
content: _t("Send the request for quotation to your vendor."),
position: "bottom",
position: "left",
run: 'click',
}, {
trigger: ".o_field_widget [name=price_unit]",
+1 -1
View File
@@ -28,7 +28,7 @@ tour.register("sale_tour", {
}, {
trigger: ".modal-content button[name='action_save_onboarding_company_step']",
content: _t("Looks good. Let's continue."),
position: "bottom",
position: "left",
}, {
trigger: 'a.o_onboarding_step_action.btn[data-method=action_open_base_document_layout]',
extra_trigger: ".o_sale_order",