[FIX] project: adapt tour to flow changes

The ColumnQuickCreate widget is now automatically open when
entering a grouped Kanban view with no column. Moreover, the DOM
of the quick create has changed. The tour had to be adapted
accordingly.
This commit is contained in:
Aaron Bohy
2018-01-26 19:26:03 +01:00
parent b96a4f6296
commit fbb6942326
+7 -18
View File
@@ -22,9 +22,6 @@ tour.register('project_tour', {
trigger: 'input.o_project_name',
content: _t('Choose a <b>project name</b>. (e.g. Website Launch, Product Development, Office Party, etc.)'),
position: 'right',
run: function (actions) {
actions.auto();
},
}, {
trigger: '.o_open_tasks',
content: _t('This will create new project and redirect us to its tasks.'),
@@ -33,14 +30,12 @@ tour.register('project_tour', {
actions.auto(".modal:visible .btn.btn-primary");
},
}, {
trigger: ".o_kanban_project_tasks .o_column_quick_create",
trigger: ".o_kanban_project_tasks .o_column_quick_create input",
content: _t("Add columns to configure <b>stages for your tasks</b>.<br/><i>e.g. Specification &gt; Development &gt; Done</i>"),
position: "right"
}, {
trigger: ".o-kanban-button-new",
extra_trigger: '.o_kanban_project_tasks',
content: _t("Now that the project is set up, <b>create a few tasks</b>."),
position: "right"
trigger: ".o_kanban_project_tasks .o_column_quick_create .o_kanban_add",
auto: true,
}, {
trigger: '.o-kanban-button-new',
extra_trigger: '.o_kanban_project_tasks',
@@ -48,21 +43,15 @@ tour.register('project_tour', {
position: 'right',
width: 200,
}, {
trigger: 'input.o_task_name',
trigger: '.o_kanban_quick_create input.o_field_char[name=name]',
extra_trigger: '.o_kanban_project_tasks',
content: _t('Choose a <b>task name</b>. (e.g. Website Design, Purchase Goods etc.)'),
position: 'right',
run: function (actions) {
actions.auto();
},
}, {
trigger: '.o_form_button_save',
trigger: '.o_kanban_quick_create .o_kanban_add',
extra_trigger: '.o_kanban_project_tasks',
content: _t("<p>Once your task is ready, you can save it.</p>"),
position: 'bottom',
}, {
trigger: ".breadcrumb li:not(.active):last",
extra_trigger: '.o_form_project_tasks.o_form_readonly',
content: _t("Use the breadcrumbs to <b>go back to your tasks pipeline</b>."),
position: "bottom"
}, {
trigger: ".o_kanban_record .o_priority_star",
extra_trigger: '.o_kanban_project_tasks',