[FIX] sale: fix sale_quote_tour

Tour failed due to the always edit feature

task-3012774

closes odoo/odoo#103103

X-original-commit: 20032c71fbeb44c1b8f0e00ac93c7804c1ec602d
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Demesmaeker
2022-10-11 20:25:36 +02:00
parent ccea0de419
commit 706b88397c
2 changed files with 6 additions and 9 deletions
+3 -9
View File
@@ -74,7 +74,7 @@ tour.register("sale_quote_tour", {
rainbowManMessage: markup(_t("<b>Congratulations</b>, your first quotation is sent!<br>Check your email to validate the quote.")),
sequence: 30,
}, [{
trigger: ".o_form_editable .o_field_many2one[name='partner_id']",
trigger: ".o_field_res_partner_many2one[name='partner_id']",
extra_trigger: ".o_sale_order",
content: _t("Write a company name to create one, or see suggestions."),
position: "right",
@@ -87,7 +87,6 @@ tour.register("sale_quote_tour", {
in_modal: false,
}, {
trigger: ".o_field_x2many_list_row_add > a",
extra_trigger: ".o_field_many2one[name='partner_id'] .o_external_button",
content: _t("Click here to add some products or services to your quotation."),
position: "bottom",
}, {
@@ -110,16 +109,11 @@ tour.register("sale_quote_tour", {
},
id: "product_selection_step"
}, {
trigger: ".ui-menu.ui-widget .ui-menu-item a:contains('DESK0001')",
trigger: "a:contains('DESK0001')",
auto: true,
}, {
trigger: ".o_form_editable textarea[name='name'].product_creation_success",
auto: true,
run: function () {
} // wait for product creation
}, {
trigger: ".o_field_widget[name='price_unit'] ",
extra_trigger: ".o_sale_order",
extra_trigger: ".fa-arrow-right", // Wait for product creation
content: Markup(_t("<b>Set a price</b>.")),
position: "right",
run: "text 10.0"
@@ -13,3 +13,6 @@ class TestUi(HttpCase):
def test_02_sale_tour_company_onboarding_done(self):
self.env.company.set_onboarding_step_done('base_onboarding_company_state')
self.start_tour("/web", 'sale_tour', login="admin", step_delay=100)
def test_03_sale_quote_tour(self):
self.start_tour("/web", 'sale_quote_tour', login="admin", step_delay=100)