[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 <edm@odoo.com>
This commit is contained in:
Demesmaeker
2023-01-10 10:16:56 +01:00
parent 99e75e4e4e
commit a6087c67b7
+1 -4
View File
@@ -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("<b>Send the quote</b> 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."),