diff options
| author | wan <wan@odoo.com> | 2020-08-18 11:07:12 +0000 |
|---|---|---|
| committer | wan <wan@odoo.com> | 2020-08-19 16:04:01 +0000 |
| commit | 4cf9fa928e2598aeb0a1bc881552952eb34787f1 (patch) | |
| tree | 7bd4dfe4660cd223539df8794c19c279e0bc8f6a /addons/account/static | |
| parent | fa02f0ba2109f68d9f66bec9bc4033b3f0d0ae69 (diff) | |
[IMP] account: redo the tour
The tour has been updated
Task 2306134
closes odoo/odoo#55624
Related: odoo/enterprise#12378
Related: odoo/upgrade#1659
Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
Diffstat (limited to 'addons/account/static')
| -rw-r--r-- | addons/account/static/src/js/tours/account.js | 80 |
1 files changed, 64 insertions, 16 deletions
diff --git a/addons/account/static/src/js/tours/account.js b/addons/account/static/src/js/tours/account.js index 74b0dcda95b..0b4365ce23e 100644 --- a/addons/account/static/src/js/tours/account.js +++ b/addons/account/static/src/js/tours/account.js @@ -7,21 +7,69 @@ var tour = require('web_tour.tour'); var _t = core._t; tour.register('account_tour', { - 'skip_enabled': true, -}, [{ - trigger: ".o_form_readonly .o_invoice_validate", - extra_trigger: '.o_invoice_form', - content: _t("Click to <b>validate your invoice.</b> A reference will be assigned to this invoice and you will not be able to modify it anymore."), - position: "right" -}, { - trigger: ".o_invoice_send", - extra_trigger: '.o_invoice_form', - content: _t("Click to <b>send the invoice by email.</b>"), - position: "bottom" -}, { - trigger: ".o_mail_send", - content: _t("Click to <b>send the invoice.</b>"), - position: "bottom" -} ]); + skip_enabled: true, + url: "/web", +}, [ + ...tour.stepUtils.goToAppSteps('account.menu_finance', _t('Send invoices to your customers in no time with the <b>Invoicing app</b>.')), + { + trigger: "a.o_onboarding_step_action[data-method=action_open_base_onboarding_company]", + content: _t("Start by checking your company's data."), + }, { + trigger: "button[name=action_save_onboarding_company_step]", + content: _t("Looks good. Let's continue."), + }, { + trigger: "a.o_onboarding_step_action[data-method=action_open_base_document_layout]", + content: _t("Customize your layout."), + }, { + trigger: "button[name=document_layout_save]", + content: _t("Once everything is as you want it, validate."), + }, { + trigger: "a.o_onboarding_step_action[data-method=action_open_account_onboarding_create_invoice]", + content: _t("Now, we'll create a your first invoice."), + }, { + trigger: "input[name=name]", + content: _t("Customize the prefix and number to fit your needs."), + run: 'text SALE/0000000001' + }, { + trigger: "div[name=partner_id] input", + content: _t("Write a company name to <b>create one</b> or <b>see suggestions</b>."), + position: "bottom", + }, { + trigger: ".o_m2o_dropdown_option a:contains('Create')", + content: _t("Select first partner"), + auto: true, + }, { + trigger: ".modal-content button.btn-primary", + 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."), + }, { + trigger: "div[name=invoice_line_ids] .o_field_x2many_list_row_add a:not([data-context])", + content: _t("Add a line to your invoice"), + }, { + trigger: "div[name=invoice_line_ids] textarea[name=name]", + content: _t("Fill in the details of the line.<br><i>Tip: all the details can be set automatically if you configure your <b>products</b>.</i>"), + position: "bottom", + }, { + trigger: "div[name=invoice_line_ids] input[name=price_unit]", + content: _t("Set a price"), + position: "bottom", + run: 'text 100', + }, { + trigger: "button[name=action_post]", + content: _t("Once your invoice is ready, validate."), + }, { + trigger: "button[name=action_invoice_sent]", + content: _t("Send the invoice and check what the customer will receive."), + }, { + trigger: "input[name=email]", + content: _t("Write here <b>your own email address</b> to test the flow."), + run: 'text customer@example.com', + }, { + trigger: ".modal-content button.btn-primary", + content: _t("Validate."), + }, { + trigger: "button[name=send_and_print_action]", + content: _t("Let's send the invoice."), + } +]); }); |
