From 34f05c22181bf0c045b6d2823f90e9496caacdf6 Mon Sep 17 00:00:00 2001 From: Dharmraj Jhala Date: Thu, 3 Sep 2020 11:32:47 +0000 Subject: [PATCH] [FIX] crm: fix randomly broken crm tour While running 'crm_tour' in test mode and quick creating record on crm kanban, adding a partner and moving to another field from tour opens a confirmation dialog asking whther or not you want to create a new record. This dialog remains open sometimes, breaking the further flow of tour. This commit fixes the issue by selecting or creating the record from drop-down after adding a partner (and before going to further steps), thus avoiding the confirmation dialog. Note: - Because we create/select the partner, the 'name' field is auto filled and we don't have to set anything in there. So this step is not needed anymore in the tour. TaskID - 2323196 closes odoo/odoo#58823 X-original-commit: a592ba14f82028487cee0b060a86881f0175aeda Signed-off-by: Thibault Delavallee (tde) --- addons/crm/static/src/js/tours/crm.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/crm/static/src/js/tours/crm.js b/addons/crm/static/src/js/tours/crm.js index 004e904fe56..188cb389b19 100644 --- a/addons/crm/static/src/js/tours/crm.js +++ b/addons/crm/static/src/js/tours/crm.js @@ -33,8 +33,9 @@ tour.register('crm_tour', { actions.text("Brandon Freeman", this.$anchor.find("input")); }, }, { - trigger: ".o_kanban_quick_create .o_field_widget[name='name']", + trigger: ".ui-menu-item > a", auto: true, + in_modal: false, }, { trigger: '.o_kanban_quick_create .o_field_monetary[name="expected_revenue"] input', content: _t("Define here the Expected Revenue of this Opportunity."),