From 0cf146cb2d0d22669d796c167ab46a740e6572c7 Mon Sep 17 00:00:00 2001 From: "Xavier BOL (xbo)" Date: Mon, 15 Feb 2021 10:17:12 +0100 Subject: [PATCH] [IMP] sale_timesheet: update sale timesheet tour task-2442683 closes odoo/odoo#66181 --- .../static/tests/tours/sale_timesheet_tour.js | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/addons/sale_timesheet/static/tests/tours/sale_timesheet_tour.js b/addons/sale_timesheet/static/tests/tours/sale_timesheet_tour.js index e178275adcf..bcace6da789 100644 --- a/addons/sale_timesheet/static/tests/tours/sale_timesheet_tour.js +++ b/addons/sale_timesheet/static/tests/tours/sale_timesheet_tour.js @@ -185,21 +185,9 @@ tour.register('sale_timesheet_tour', { trigger: 'div.o_notebook_headers', content: 'Click on Invoicing tab to configure the invoicing of this project.', run: function (actions) { - const notebookId = $('div[name="pricing_type"]').closest("div.tab-pane").attr('id'); + const notebookId = $('div[name="sale_order_id"]').closest("div.tab-pane").attr('id'); actions.click(this.$anchor.find(`a[data-toggle="tab"][href="#${notebookId}"]`)); }, -}, { - trigger: 'div[name="pricing_type"]', - content: 'Check if the pricing type is equal to Task Rate', - run: function (actions) { - const pricingType = this.$anchor.find('input[data-value="task_rate"]').attr('checked'); - if (!pricingType) - console.error('The default pricing type of the project should be "Task Rate".'); - } -}, { - trigger: 'input[data-value="fixed_rate"]', - content: 'Change the pricing type to "Project Rate"', - run: 'click', }, { trigger: 'div[name="partner_id"]', content: 'Add the customer for this project to select an SO and SOL for this customer (e.g. Brandon Freeman).', @@ -230,10 +218,6 @@ tour.register('sale_timesheet_tour', { trigger: 'ul.ui-autocomplete > li:first-child > a', content: 'Select the Sales Order Item in the autocomplete dropdown.', run: 'click', -}, { - trigger: 'input[data-value="employee_rate"]', - content: 'Select "Employee rate" as pricing type.', - run: 'click', }, { trigger: 'div[name="sale_line_employee_ids"] td.o_field_x2many_list_row_add > a[role="button"]', content: 'Click on Add a line on the mapping list view.',