[FIX] planning: fix project onboarding tour steps

Before this commit, the project onboarding tour: the step to create a new stage
get validated if the user clicks on the 'add' button without actually creating a
new stage

After this commit, it will point first to the text area for the name and then
add tooltip will be highlighted so tour does not consumed without adding the
stage.

task-3049636

closes odoo/odoo#118825

X-original-commit: 255fa6245114531d3a0fad4f4f0739e5ab57d3b8
Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
Pratik Awasthi
2023-04-17 19:07:48 +02:00
parent 0ace060fc1
commit b20220cd4d
+8 -12
View File
@@ -38,26 +38,22 @@ registry.category("web_tour.tours").add('project_tour', {
actions.auto('.modal:visible .btn.btn-primary');
},
}, {
trigger: ".o_kanban_project_tasks .o_column_quick_create .input-group",
trigger: ".o_kanban_project_tasks .o_column_quick_create .input-group .o_input",
content: Markup(_t("Add columns to organize your tasks into <b>stages</b> <i>e.g. New - In Progress - Done</i>.")),
position: 'right',
run: function (actions) {
actions.text("Test", this.$anchor.find("input"));
},
position: 'bottom',
run: "text Test",
}, {
trigger: ".o_kanban_project_tasks .o_column_quick_create .o_kanban_add",
auto: true,
position: 'right',
}, {
trigger: ".o_kanban_project_tasks .o_column_quick_create .input-group",
trigger: ".o_kanban_project_tasks .o_column_quick_create .input-group .o_input",
extra_trigger: '.o_kanban_group',
content: Markup(_t("Add columns to organize your tasks into <b>stages</b> <i>e.g. New - In Progress - Done</i>.")),
position: 'right',
run: function (actions) {
actions.text("Test", this.$anchor.find("input"));
},
position: 'bottom',
run: "text Test",
}, {
trigger: ".o_kanban_project_tasks .o_column_quick_create .o_kanban_add",
auto: true,
position: 'right',
}, {
trigger: '.o-kanban-button-new',
extra_trigger: '.o_kanban_group:eq(1)',