summaryrefslogtreecommitdiff
path: root/addons/account/static/src/js
diff options
context:
space:
mode:
authorwan <wan@odoo.com>2020-09-04 14:10:39 +0000
committerwan <wan@odoo.com>2020-09-10 14:52:46 +0000
commit960e61e7451ef8dacd3aaa70bb148240762ab461 (patch)
tree427ade8bb51cfa3830ff451764144388554cf66d /addons/account/static/src/js
parent01d25e87c358f0afbe76301c64db5ce21c59c806 (diff)
[FIX] account: saas-13.5 release fixes
Task 2327599 * The date is not copied on duplicate of account.move * Do not throw traceback if we remove the invoice date of an invoice/bill * Add extra triggers in account_tour to ensure it is done in the right view * Update the position of some tour indicators * Move the Product Categories in the Management menu * The accounting onboarding is only visible on customer invoices list view * Switch the position of banc and bic closes odoo/odoo#57107 Related: odoo/enterprise#12967 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Diffstat (limited to 'addons/account/static/src/js')
-rw-r--r--addons/account/static/src/js/tours/account.js19
1 files changed, 18 insertions, 1 deletions
diff --git a/addons/account/static/src/js/tours/account.js b/addons/account/static/src/js/tours/account.js
index e2d08c2dd60..a025e6ef9a6 100644
--- a/addons/account/static/src/js/tours/account.js
+++ b/addons/account/static/src/js/tours/account.js
@@ -13,60 +13,77 @@ tour.register('account_tour', {
{
trigger: "a.o_onboarding_step_action[data-method=action_open_base_onboarding_company]",
content: _t("Start by checking your company's data."),
+ position: "bottom",
}, {
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."),
}, {
trigger: "a.o_onboarding_step_action[data-method=action_open_base_document_layout]",
content: _t("Customize your layout."),
+ position: "bottom",
}, {
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."),
}, {
trigger: "a.o_onboarding_step_action[data-method=action_open_account_onboarding_create_invoice]",
content: _t("Now, we'll create a 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>."),
position: "bottom",
}, {
trigger: ".o_m2o_dropdown_option a:contains('Create')",
+ extra_trigger: "[name=move_type][raw-value=out_invoice]",
content: _t("Select first partner"),
auto: true,
}, {
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."),
}, {
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]",
content: _t("Add a line to your invoice"),
}, {
trigger: "div[name=invoice_line_ids] textarea[name=name]",
+ extra_trigger: "[name=move_type][raw-value=out_invoice]",
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]",
+ extra_trigger: "[name=move_type][raw-value=out_invoice]",
content: _t("Set a price"),
position: "bottom",
run: 'text 100',
}, {
trigger: "button[name=action_post]",
- content: _t("Once your invoice is ready, validate."),
+ extra_trigger: "[name=move_type][raw-value=out_invoice]",
+ content: _t("Once your invoice is ready, press CONFIRM."),
}, {
trigger: "button[name=action_invoice_sent]",
+ extra_trigger: "[name=move_type][raw-value=out_invoice]",
content: _t("Send the invoice and check what the customer will receive."),
}, {
trigger: "input[name=email]",
+ 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',
}, {
trigger: ".modal-content button.btn-primary",
+ extra_trigger: "[name=move_type][raw-value=out_invoice]",
content: _t("Validate."),
}, {
trigger: "button[name=send_and_print_action]",
+ extra_trigger: "[name=move_type][raw-value=out_invoice]",
content: _t("Let's send the invoice."),
}
]);