From a6087c67b71639c79ffcfa57cde499461b82ee74 Mon Sep 17 00:00:00 2001 From: Demesmaeker Date: Thu, 5 Jan 2023 16:12:43 +0000 Subject: [PATCH] [FIX] sale: ensure correct partner is picked Followup of b9e80c1403de0341a0c133a254142e53ef8c2842 In the last commit, we make it so when the tour was working as expected, the partner had an email. But the problem which lead to another partner sometimes chosen instead was still there. We now make sure to select the correct partner. Additionally, we supress an useless step. closes odoo/odoo#109459 X-original-commit: 9b31ee81095ccef100c98cb0751b6e96d81f691e Signed-off-by: Morgane Demesmaeker --- addons/sale/static/src/js/tours/sale.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/addons/sale/static/src/js/tours/sale.js b/addons/sale/static/src/js/tours/sale.js index 0708bdfae57..6aaee1aa925 100644 --- a/addons/sale/static/src/js/tours/sale.js +++ b/addons/sale/static/src/js/tours/sale.js @@ -82,7 +82,7 @@ tour.register("sale_quote_tour", { actions.text("Agrolait", this.$anchor.find("input")); }, }, { - trigger: ".ui-menu-item > a", + trigger: ".ui-menu-item > a:contains('Agrolait')", auto: true, in_modal: false, }, { @@ -120,9 +120,6 @@ tour.register("sale_quote_tour", { }, ...tour.stepUtils.statusbarButtonsSteps("Send by Email", Markup(_t("Send the quote to yourself and check what the customer will receive.")), ".o_statusbar_buttons button[name='action_quotation_send']"), { - trigger: ".modal-footer button.btn-primary", - auto: true, - }, { trigger: ".modal-footer button[name='action_send_mail']", extra_trigger: ".modal-footer button[name='action_send_mail']", content: _t("Let's send the quote."),