From 5c2274e169571f20a97ae03e2bfc0f5d558d2681 Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Thu, 25 Aug 2016 14:58:46 +0200 Subject: [PATCH] [IMP] crm, project: do not assume number of records in column during tour --- addons/crm/static/src/js/tour.js | 2 +- addons/project/static/src/js/tour.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/crm/static/src/js/tour.js b/addons/crm/static/src/js/tour.js index f3be44d7436..1da4843ed95 100644 --- a/addons/crm/static/src/js/tour.js +++ b/addons/crm/static/src/js/tour.js @@ -33,7 +33,7 @@ tour.register('crm_tour', { trigger: ".o_opportunity_kanban .o_kanban_group:first-child .o_kanban_record:last-child", content: _t("Drag & drop opportunities between columns as you progress in your sales cycle."), position: "right", - run: "drag_and_drop .o_opportunity_kanban .o_kanban_group:nth-child(2)", + run: "drag_and_drop .o_opportunity_kanban .o_kanban_group:eq(2) ", }, { trigger: ".o_kanban_record:not(.o_updating) .oe_kanban_status_red", extra_trigger: ".o_opportunity_kanban", diff --git a/addons/project/static/src/js/tour.js b/addons/project/static/src/js/tour.js index a05c2958510..4f9813c61d0 100644 --- a/addons/project/static/src/js/tour.js +++ b/addons/project/static/src/js/tour.js @@ -39,7 +39,7 @@ tour.register('project_tour', { position: "right" }, { trigger: ".o-kanban-button-new", - extra_trigger: '.o_kanban_project_tasks .o_kanban_group:nth-child(2)', + extra_trigger: '.o_kanban_project_tasks .o_kanban_group:eq(2)', content: _t("Now that the project is set up, create a few tasks."), position: "right" }, { @@ -47,7 +47,7 @@ tour.register('project_tour', { extra_trigger: '.o_kanban_project_tasks', content: _t("Drag & drop tasks between columns as you work on them."), position: "right", - run: "drag_and_drop .o_kanban_group:nth-child(2)", + run: "drag_and_drop .o_kanban_group:eq(2) ", }, { trigger: ".o_kanban_record .o_priority_star", extra_trigger: '.o_kanban_project_tasks',