Improving onboarding with tours
After developing a large application, it is crucial to explain software flows to the end users. The Odoo framework includes a built-in tour manager. With this tour manager, you can guide an end user through learning specific flows. In this recipe, we will create a tour so that we can create a book in the library.
Getting ready
We will be using the my_hostel
module from the previous recipe. Tours are only displayed in the database without demo data, so if you are using a database with demo data, create a new database without demo data for this recipe.
How to do it…
To add a tour to a hostel, follow these steps:
- Add a new
/static/src/js/my_hostel_tour.js
file with the following code:/** @odoo-module **/ import { _t } from "@web/core/l10n/translation"; import { registry } from "@web/core/registry"; import { markup } from "@odoo/owl" import { stepUtils } from "@web_tour/tour_service/tour_utils...