|
| 1 | +/** @odoo-module */ |
| 2 | +import {registry} from "@web/core/registry"; |
| 3 | +import {stepUtils} from "@web_tour/tour_service/tour_utils"; |
| 4 | + |
| 5 | +registry.category("web_tour.tours").add("sale_order_archive_tour", { |
| 6 | + url: "/odoo", |
| 7 | + |
| 8 | + steps: () => [ |
| 9 | + stepUtils.showAppsMenuItem(), |
| 10 | + { |
| 11 | + content: "Open the database", |
| 12 | + trigger: ".o_app[data-menu-xmlid='sale.sale_menu_root']", |
| 13 | + run: "click", |
| 14 | + }, |
| 15 | + { |
| 16 | + content: "Remove all filters", |
| 17 | + trigger: ".o_facet_remove", |
| 18 | + run: "click", |
| 19 | + }, |
| 20 | + { |
| 21 | + content: "Choose the row with 'Quotation'", |
| 22 | + trigger: ".o_data_row:has(td:contains('Quotation')) input", |
| 23 | + position: "right", |
| 24 | + run: "click", |
| 25 | + }, |
| 26 | + { |
| 27 | + content: "Go to 'Action'", |
| 28 | + trigger: "div:nth-child(2) > .o-dropdown", |
| 29 | + position: "bottom", |
| 30 | + run: "click", |
| 31 | + }, |
| 32 | + { |
| 33 | + content: "Choose 'Cancel'", |
| 34 | + trigger: ".o-dropdown-item:contains('Cancel')", |
| 35 | + position: "right", |
| 36 | + run: "click", |
| 37 | + }, |
| 38 | + { |
| 39 | + content: "Confirm the cancellation", |
| 40 | + trigger: ".modal-footer .btn-primary", |
| 41 | + position: "right", |
| 42 | + run: "click", |
| 43 | + }, |
| 44 | + { |
| 45 | + content: "Wait for the row to appear as 'Cancelled'", |
| 46 | + trigger: ".o_technical_modal button[name='action_mass_cancel']", |
| 47 | + |
| 48 | + position: "right", |
| 49 | + }, |
| 50 | + { |
| 51 | + content: "Choose the row with 'Cancelled'", |
| 52 | + trigger: ".o_data_row:has(td:contains('Cancelled')) input", |
| 53 | + position: "right", |
| 54 | + run: "click", |
| 55 | + }, |
| 56 | + { |
| 57 | + content: "Go to 'Action", |
| 58 | + trigger: "div:nth-child(2) > .o-dropdown", |
| 59 | + position: "bottom", |
| 60 | + run: "click", |
| 61 | + }, |
| 62 | + { |
| 63 | + content: "Choose 'Archive'", |
| 64 | + trigger: ".o-dropdown-item:contains('Archive')", |
| 65 | + position: "right", |
| 66 | + run: "click", |
| 67 | + }, |
| 68 | + { |
| 69 | + content: "Confirm the archiving", |
| 70 | + trigger: ".modal-footer .btn-primary", |
| 71 | + position: "right", |
| 72 | + run: "click", |
| 73 | + }, |
| 74 | + ], |
| 75 | +}); |
0 commit comments