diff --git a/addons/hr_expense/static/src/js/tour.js b/addons/hr_expense/static/src/js/tour.js index 49cc0c27c26..0e787c421fd 100644 --- a/addons/hr_expense/static/src/js/tour.js +++ b/addons/hr_expense/static/src/js/tour.js @@ -6,34 +6,53 @@ var tour = require('web_tour.tour'); var _t = core._t; -tour.register('hr_expense_tour', [{ +tour.register('hr_expense_tour' , +{ + url: "/web" +}, +[tour.STEPS.MENU_MORE, +{ trigger: '.o_app[data-menu-xmlid="hr_expense.menu_hr_expense_root"], .oe_menu_toggler[data-menu-xmlid="hr_expense.menu_hr_expense_root"]', - content: _t("Want to manage your employee expenses and receipts? Start here."), + content: _t("Go to the expense to attach a receipt."), position: 'bottom', }, { - trigger: 'a#o_mail_test', - content: _t("Click to try submitting an expense by email. You can attach a photo of the receipt to the mail."), + trigger: '.o_list_button_add', + extra_trigger: ".o_expense_tree", + content: _t('

Click here to create your first expense and add it to below.

'), + position: 'bottom' +}, { + trigger: ".o_required_modifier input", + extra_trigger: ".o_expense_form", + content: _t("Write the name of the product, or select an existing one."), + position: "top", +}, { + trigger: '.o_form_button_save', + extra_trigger: ".o_expense_form", + content: _t("

Once your Expense is ready, you can save it.

"), + position: 'bottom', +}, { + trigger: '.o_expense_form .o_chatter_button_new_message', + content: _t("Attach your receipt here."), + position: 'top', +}, { + trigger: '.o_expense_tree .o_checkbox > input[type=checkbox]', + content: _t('

Select expenses to submit them to your manager

'), + position: 'bottom' +}, { + trigger: '.o_dropdown_toggler_btn', + extra_trigger: ".o_expense_tree", + content: _t('

Click on Action Submit To Manager to submit selected expenses to your manager

'), position: 'right', }, { - trigger: '.o_expense_submit:visible', - content: _t("

Once completed, you can submit the expense for approval.

Tip: from the list view, select all expenses to submit them all at once, in a single report.

"), - extra_trigger: '.o_form_readonly', + trigger: '.o_expense_sheet_approve', + content: _t("

Approve the sheet here.

Tip: if you refuse, don’t forget to give the reason thanks to the hereunder message tool

"), position: 'bottom', }, { - trigger: '.o_form_button_save:visible', - extra_trigger: '.o_expense_sheet', - content: _t("Save the report, your manager will receive a notification by email to approve it."), - position: 'right', -}, { - trigger: '.o_expense_sheet_approve:visible', - content: _t("

Managers can validate or refuse expense reports.

If you refuse a report, explain the reason using the New Message button in the bottom.

"), - position: 'bottom', -}, { - trigger: '.o_expense_sheet_post:visible', + trigger: '.o_expense_sheet_post', content: _t("

The accountant receive approved expense reports.

He can post journal entries in one click if taxes and accounts are right.

"), position: 'bottom', }, { - trigger: '.o_expense_sheet_pay:visible', + trigger: '.o_expense_sheet_pay', content: _t("The accountant can register a payment to reimburse the employee directly."), position: 'bottom', }, { diff --git a/addons/hr_expense/views/hr_expense_views.xml b/addons/hr_expense/views/hr_expense_views.xml index dea06f89704..8867044d3c4 100644 --- a/addons/hr_expense/views/hr_expense_views.xml +++ b/addons/hr_expense/views/hr_expense_views.xml @@ -5,7 +5,7 @@ hr.expense.tree hr.expense - + @@ -26,7 +26,7 @@ hr.expense -
+