diff options
| author | Nicolas (vin) <vin@odoo.com> | 2020-11-03 14:28:44 +0000 |
|---|---|---|
| committer | Nicolas (vin) <vin@odoo.com> | 2020-11-25 13:29:03 +0000 |
| commit | 597f7581e3150cbbd9b6906c55f2fa7edb5fddcd (patch) | |
| tree | 9176a6cbba7c230889e73c7645661e8078f2ba41 | |
| parent | 6612e84dbfe4970978fe00c8e282ef398fbe8856 (diff) | |
[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#61219
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
| -rw-r--r-- | addons/account/static/src/js/tours/account.js | 8 |
1 files 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 @@ -31,11 +31,6 @@ tour.register('account_tour', { 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]", content: _t("Write a company name to <b>create one</b> or <b>see suggestions</b>."), @@ -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 <b>Customers</b> 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 <b>your own email address</b> 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]", |
