From ae34fd50c880b1bd29440df220d0766a4bcd0ad2 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Fri, 12 Aug 2016 08:35:06 +0200 Subject: [PATCH] Revert "[IMP] project: tour mini improvement" This reverts commit 45a13cac8037031e246bc7ca1d31294e681ef485. The commit failed the tour test since there is invisible ".o_kanban_ghost" cards after the last. Since the created new project is already sorted in the right location, we don't know if it will be the first or the last. But if it is the first, we know we will see the help tip. --- addons/project/static/src/js/tour.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project/static/src/js/tour.js b/addons/project/static/src/js/tour.js index adf28a22af4..a05c2958510 100644 --- a/addons/project/static/src/js/tour.js +++ b/addons/project/static/src/js/tour.js @@ -27,7 +27,7 @@ tour.register('project_tour', { actions.auto(".modal:visible .btn.btn-primary"); }, }, { - trigger: '.o_project_kanban .o_kanban_record:last-child', + trigger: '.o_project_kanban .o_kanban_record:first-child', content: _t('Click on the card to go to your project and start organizing tasks.'), position: 'right', run: function (actions) {