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_library
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 library, perform the following steps:
- Add a new
/static/src/js/my_library_tour.js
file with the following code:odoo.define('my_library.tour', function (require) { "use strict"; var core = require('web.core'); var tour = require('web_tour.tour'); var _t = core._t; tour.register('library_tour', { ...