diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/hr_expense/static/src/js/tours | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/hr_expense/static/src/js/tours')
| -rw-r--r-- | addons/hr_expense/static/src/js/tours/hr_expense.js | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/addons/hr_expense/static/src/js/tours/hr_expense.js b/addons/hr_expense/static/src/js/tours/hr_expense.js new file mode 100644 index 00000000..0422d687 --- /dev/null +++ b/addons/hr_expense/static/src/js/tours/hr_expense.js @@ -0,0 +1,65 @@ +odoo.define('hr_expense.tour', function(require) { +"use strict"; + +var core = require('web.core'); +var tour = require('web_tour.tour'); + +var _t = core._t; + +tour.register('hr_expense_tour' , { + url: "/web" +}, [tour.stepUtils.showAppsMenuItem(), { + trigger: '.o_app[data-menu-xmlid="hr_expense.menu_hr_expense_root"]', + content: _t("Want to manage your expenses? It starts here."), + position: 'right', + edition: 'community' +}, { + trigger: '.o_app[data-menu-xmlid="hr_expense.menu_hr_expense_root"]', + content: _t("Want to manage your expenses? It starts here."), + position: 'bottom', + edition: 'enterprise' +}, { + trigger: '.o_form_button_save', + content: _t("<p>Once your <b> Expense </b> is ready, you can save it.</p>"), + position: 'bottom', +}, { + trigger: '.o_attach_document', + content: _t("Attach your receipt here."), + position: 'bottom', +}, { + trigger: '.o_expense_submit', + extra_triggger: ".o_expense_form", + content: _t('<p>Click on <b> Create Report </b> to create the report.</p>'), + position: 'right', +}, { + trigger: '.o_expense_tree input[type=checkbox]', + content: _t('<p>Select expenses to submit them to your manager</p>'), + position: 'bottom' +}, { + trigger: '.o_dropdown_toggler_btn', + extra_trigger: ".o_expense_tree", + content: _t('<p>Click on <b> Action Create Report </b> to submit selected expenses to your manager</p>'), + position: 'right', +}, { + trigger: '.o_expense_sheet_submit', + content: _t('Once your <b>Expense report</b> is ready, you can submit it to your manager and wait for the approval from your manager.'), + position: 'bottom', +}, { + trigger: '.o_expense_sheet_approve', + content: _t("<p>Approve the report here.</p><p>Tip: if you refuse, don’t forget to give the reason thanks to the hereunder message tool</p>"), + position: 'bottom', +}, { + trigger: '.o_expense_sheet_post', + content: _t("<p>The accountant receive approved expense reports.</p><p>He can post journal entries in one click if taxes and accounts are right.</p>"), + position: 'bottom', +}, { + trigger: '.o_expense_sheet_pay', + content: _t("The accountant can register a payment to reimburse the employee directly."), + position: 'bottom', +}, { + trigger: 'li a[data-menu-xmlid="hr_expense.menu_hr_expense_sheet_my_all"], div[data-menu-xmlid="hr_expense.menu_hr_expense_sheet_my_all"]', + content: _t("Managers can get all reports to approve from this menu."), + position: 'bottom', +}]); + +}); |
