From ad0bc9adf2c739cc0dfdacda9a6eca9b5a59d9ef Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Wed, 8 Jun 2016 09:57:33 +0200 Subject: [ADD] project: onboarding tour Also: - creation of a (archived by default) sample project with tasks, that the user can activate to discover the project app. - improvement of the simplified form view to create a new project --- addons/project/static/src/js/tour.js | 55 ++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 addons/project/static/src/js/tour.js (limited to 'addons/project/static/src') diff --git a/addons/project/static/src/js/tour.js b/addons/project/static/src/js/tour.js new file mode 100644 index 00000000000..37cb7d19d66 --- /dev/null +++ b/addons/project/static/src/js/tour.js @@ -0,0 +1,55 @@ +odoo.define('project.tour', function(require) { +"use strict"; + +var core = require('web.core'); +var tour = require('web_tour.tour'); + +var _t = core._t; + +tour.register('project_tour', { + 'skip_enabled': true, +}, [{ + trigger: '.o_app[data-menu-xmlid="base.menu_main_pm"], .oe_menu_toggler[data-menu-xmlid="base.menu_main_pm"]', + content: _t('Want a better way to manage your projects? It starts here.'), + position: 'bottom', +}, { + trigger: '.o-kanban-button-new', + extra_trigger: '.o_project_kanban', + content: _t('Let\'s create your first project.'), + position: 'right', + width: 200, +}, { + trigger: 'input.o_project_name', + content: _t('Choose a project name. (e.g. Website Launch, Product Development, Office Party)'), + position: 'right', +}, { + trigger: '.o_project_kanban .o_kanban_record:first-child', + content: _t('Let\'s go to your project and start organizing tasks.'), + position: 'right', +}, { + trigger: ".o_kanban_project_tasks .o_column_quick_create", + content: _t("Add columns to setup tasks stages.
e.g. Specification > Development > Tests"), + position: "right" +}, { + trigger: ".o-kanban-button-new", + extra_trigger: '.o_kanban_project_tasks .o_kanban_group:nth-child(2)', + content: _t("Now that the project is setup, create a few tasks."), + position: "right" +}, { + trigger: ".o_kanban_record:nth-child(3)", + extra_trigger: '.o_kanban_project_tasks', + content: _t("Drag & drop tasks between columns as you work on them."), + position: "right" +}, { + trigger: ".o_kanban_record .o_priority_star", + extra_trigger: '.o_kanban_project_tasks', + content: _t("Star tasks to mark your favorites, the team sprint backlog, priorities, etc."), + position: "bottom" +}, { + trigger: ".breadcrumb li:not(.active):last", + extra_trigger: '.o_form_project_tasks', + content: _t("Use the breadcrumbs to go back to tasks."), + position: "bottom" +}]); + +}); -- cgit v1.2.3