diff options
| author | Fabien Pinckaers <fp@openerp.com> | 2016-06-08 09:57:33 +0200 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2016-06-16 14:59:41 +0200 |
| commit | ad0bc9adf2c739cc0dfdacda9a6eca9b5a59d9ef (patch) | |
| tree | 698daa275197a5e1a9c3fcbb8029e91fc4377987 /addons/project/static | |
| parent | 3c319b2b8b300321be2f296e1b47076e80654f1d (diff) | |
[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
Diffstat (limited to 'addons/project/static')
| -rw-r--r-- | addons/project/static/src/js/tour.js | 55 |
1 files changed, 55 insertions, 0 deletions
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 <b>manage your projects</b>? <i>It starts here.</i>'), + 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 <b>project name</b>. (e.g. Website Launch, Product Development, Office Party)'), + position: 'right', +}, { + trigger: '.o_project_kanban .o_kanban_record:first-child', + content: _t('Let\'s <b>go to your project</b> and start organizing tasks.'), + position: 'right', +}, { + trigger: ".o_kanban_project_tasks .o_column_quick_create", + content: _t("Add columns to setup <b>tasks stages</b>.<br/><i>e.g. Specification > Development > Tests</i>"), + 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, <b>create a few tasks</b>."), + position: "right" +}, { + trigger: ".o_kanban_record:nth-child(3)", + extra_trigger: '.o_kanban_project_tasks', + content: _t("<b>Drag & drop tasks</b> between columns as you work on them."), + position: "right" +}, { + trigger: ".o_kanban_record .o_priority_star", + extra_trigger: '.o_kanban_project_tasks', + content: _t("<b>Star tasks</b> 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 <b>go back to tasks</b>."), + position: "bottom" +}]); + +}); |
