[IMP] sale_timesheet: adapt tour to partner autocomplete Owl conversion

The rendering of the partner autocomplete widget has changed a bit since its
Owl conversion, the trigger needed to be updated to reflect that.

closes odoo/odoo#102220

X-original-commit: a8fce72e12836af95af883a08bdb74b6c0343c90
Related: odoo/enterprise#32310
Signed-off-by: Georis François (fge) <fge@odoo.com>
Signed-off-by: Louis Baudoux (lba) <lba@odoo.com>
This commit is contained in:
Louis Baudoux
2022-10-06 00:36:57 +02:00
parent c93d6e6f13
commit 72533794c8
@@ -16,7 +16,7 @@ tour.register('sale_timesheet_tour', {
content: 'Add the customer for this quotation (e.g. Brandon Freeman)',
run: 'text Brandon Freeman',
}, {
trigger: 'ul.o_partner_autocomplete_dropdown > li:first-child > a:contains(Freeman)',
trigger: 'div[name="partner_id"] ul > li:first-child > a:contains(Freeman)',
content: 'Select the first item on the autocomplete dropdown',
},
{
@@ -78,7 +78,7 @@ tour.register('sale_timesheet_tour', {
content: Markup('Select the customer of your Sales Order <i>(e.g. Brandon Freeman)</i>. Since we have a Sales Order for this customer with a prepaid service product which the remaining hours to deliver is greater than 0, the Sales Order Item in the task should be contain the Sales Order Item containing this prepaid service product.'),
run: 'text Brandon Freeman',
}, {
trigger: 'ul.o_partner_autocomplete_dropdown > li:first-child > a:contains(Freeman)',
trigger: 'div[name="partner_id"] ul > li:first-child > a:contains(Freeman)',
content: 'Select the customer in the autocomplete dropdown.',
}, {
trigger: 'a.nav-link:contains(Timesheets)',
@@ -149,7 +149,7 @@ tour.register('sale_timesheet_tour', {
content: Markup('Add the customer for this project to select an SO and SOL for this customer <i>(e.g. Brandon Freeman)</i>.'),
run: 'text Brandon Freeman',
}, {
trigger: 'ul.o_partner_autocomplete_dropdown > li:first-child > a:contains(Freeman)',
trigger: 'div[name="partner_id"] ul > li:first-child > a:contains(Freeman)',
content: 'Select the customer in the autocomplete dropdown',
}, {
trigger: 'a.nav-link[name="billing_employee_rate"]',
@@ -202,7 +202,7 @@ tour.register('sale_timesheet_tour', {
content: Markup('Add the customer for this project to select an SO and SOL for this customer <i>(e.g. Brandon Freeman)</i>.'),
run: 'text Brandon Freeman',
}, {
trigger: 'ul.o_partner_autocomplete_dropdown > li:first-child > a:contains(Freeman)',
trigger: 'div[name="partner_id"] ul > li:first-child > a:contains(Freeman)',
content: 'Select the customer in the autocomplete dropdown',
}, {
trigger: 'a.nav-link[name="billing_employee_rate"]',