From 373475643e1211346acefeb829f2d983bf218c2c Mon Sep 17 00:00:00 2001 From: "Nicolas (vin)" Date: Tue, 3 Nov 2020 14:28:44 +0000 Subject: [PATCH] [FIX] account: tweak invoicing tour steps for higher success rate This PR makes three of the invoicing tour steps optional so that avoiding one doesn't break the flow of the tour anymore. It also entirely removes the step for changing the sequence of invoice as it's an advanced feature task id #2368759 closes odoo/odoo#62553 X-original-commit: 597f7581e3150cbbd9b6906c55f2fa7edb5fddcd Signed-off-by: Quentin De Paoli (qdp) Signed-off-by: Nicolas Viseur --- addons/account/static/src/js/tours/account.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/addons/account/static/src/js/tours/account.js b/addons/account/static/src/js/tours/account.js index 1f039052bd5..6b5ab2955fd 100644 --- a/addons/account/static/src/js/tours/account.js +++ b/addons/account/static/src/js/tours/account.js @@ -30,11 +30,6 @@ tour.register('account_tour', { trigger: "a.o_onboarding_step_action[data-method=action_open_account_onboarding_create_invoice]", content: _t("Now, we'll create your first invoice."), position: "bottom", - }, { - trigger: "input[name=name]", - extra_trigger: "[name=move_type][raw-value=out_invoice]", - content: _t("Customize the prefix and number to fit your needs."), - run: 'text SALE/0000000001' }, { trigger: "div[name=partner_id] input", extra_trigger: "[name=move_type][raw-value=out_invoice]", @@ -49,6 +44,7 @@ tour.register('account_tour', { trigger: ".modal-content button.btn-primary", extra_trigger: "[name=move_type][raw-value=out_invoice]", content: _t("Once everything is set, you are good to continue. You will be able to edit this later in the Customers menu."), + auto: true, }, { trigger: "div[name=invoice_line_ids] .o_field_x2many_list_row_add a:not([data-context])", extra_trigger: "[name=move_type][raw-value=out_invoice]", @@ -77,10 +73,12 @@ tour.register('account_tour', { extra_trigger: "[name=move_type][raw-value=out_invoice]", content: _t("Write here your own email address to test the flow."), run: 'text customer@example.com', + auto: true, }, { trigger: ".modal-content button.btn-primary", extra_trigger: "[name=move_type][raw-value=out_invoice]", content: _t("Validate."), + auto: true, }, { trigger: "button[name=send_and_print_action]", extra_trigger: "[name=move_type][raw-value=out_invoice]",