|
| 1 | +import { registry } from '@web/core/registry'; |
| 2 | + |
| 3 | +registry.category("web_tour.tours").add("order_custom_product_tour", { |
| 4 | + url: "/odoo", |
| 5 | + steps: () => [ |
| 6 | + { |
| 7 | + "trigger": ".o_app[data-menu-xmlid='sale\\.sale_menu_root']", |
| 8 | + "run": "click" |
| 9 | + }, |
| 10 | + { |
| 11 | + "trigger": ".o_list_button_add", |
| 12 | + "run": "click" |
| 13 | + }, |
| 14 | + { |
| 15 | + "trigger": ".o_field_widget[name='partner_id'] .o-autocomplete--input", |
| 16 | + "run": "edit excellent furnit" |
| 17 | + }, |
| 18 | + { |
| 19 | + "trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a", |
| 20 | + "run": "click" |
| 21 | + }, |
| 22 | + { |
| 23 | + "trigger": ".o_field_x2many_list_row_add > a:nth-child(1)", |
| 24 | + "run": "click" |
| 25 | + }, |
| 26 | + { |
| 27 | + "trigger": ".o_field_product_label_section_and_note_cell .o-autocomplete--input", |
| 28 | + "run": "edit bed" |
| 29 | + }, |
| 30 | + { |
| 31 | + "trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a", |
| 32 | + "run": "click" |
| 33 | + }, |
| 34 | + { |
| 35 | + "trigger": ".o_sale_product_configurator_table li:nth-child(2) > div", |
| 36 | + "run": "click" |
| 37 | + }, |
| 38 | + { |
| 39 | + "trigger": ".o_sale_product_configurator_table li:nth-child(2) input[name='ptal-1']", |
| 40 | + "run": "click" |
| 41 | + }, |
| 42 | + { |
| 43 | + "trigger": ".o_sale_product_configurator_qty input[name='sale_quantity']", |
| 44 | + "run": "edit 16" |
| 45 | + }, |
| 46 | + { |
| 47 | + "trigger": ".o_sale_product_configurator_table td:nth-child(2)", |
| 48 | + "run": "click" |
| 49 | + }, |
| 50 | + { |
| 51 | + "trigger": ".o_sale_product_configurator_dialog button[name='sale_product_configurator_confirm_button']", |
| 52 | + "run": "click" |
| 53 | + }, |
| 54 | + { |
| 55 | + "trigger": ".o_statusbar_buttons > button[name='action_confirm']", |
| 56 | + "run": "click" |
| 57 | + }, |
| 58 | + { |
| 59 | + "trigger": ".oe_stat_button[name='action_view_purchase_orders']", |
| 60 | + "run": "click" |
| 61 | + }, |
| 62 | + { |
| 63 | + "trigger": ".o_statusbar_buttons > button[name='button_confirm']", |
| 64 | + "run": "click" |
| 65 | + }, |
| 66 | + { |
| 67 | + "trigger": ".o_statusbar_buttons > button[name='action_view_picking']", |
| 68 | + "run": "click" |
| 69 | + }, |
| 70 | + { |
| 71 | + "trigger": ".o_statusbar_buttons > button[name='button_validate']", |
| 72 | + "run": "click" |
| 73 | + }, |
| 74 | + { |
| 75 | + "trigger": ".o_breadcrumb li:nth-child(2) > a", |
| 76 | + "run": "click" |
| 77 | + }, |
| 78 | + { |
| 79 | + "trigger": ".o_field_widget[name='delivery_count'] > .o_stat_text", |
| 80 | + "run": "click" |
| 81 | + }, |
| 82 | + { |
| 83 | + "trigger": ".o_statusbar_buttons > button[name='button_validate']", |
| 84 | + "run": "click" |
| 85 | + }, |
| 86 | + { |
| 87 | + "trigger": ".o_menu_brand", |
| 88 | + "run": "click" |
| 89 | + } |
| 90 | +] |
| 91 | +}) |
0 commit comments