| 
 | 1 | +import { registry } from '@web/core/registry';  | 
 | 2 | + | 
 | 3 | +registry.category("web_tour.tours").add("bom_tour", {  | 
 | 4 | +    url: "/odoo",  | 
 | 5 | +    steps: () => [  | 
 | 6 | +    {  | 
 | 7 | +        "trigger": ".o_app[data-menu-xmlid='mrp\\.menu_mrp_root']",  | 
 | 8 | +        "run": "click"  | 
 | 9 | +    },  | 
 | 10 | +    {  | 
 | 11 | +        "trigger": ".o-dropdown[data-menu-xmlid='mrp\\.menu_mrp_bom']",  | 
 | 12 | +        "run": "click"  | 
 | 13 | +    },  | 
 | 14 | +    {  | 
 | 15 | +        "trigger": ".o-dropdown-item[data-menu-xmlid='mrp\\.menu_mrp_bom_form_action']",  | 
 | 16 | +        "run": "click"  | 
 | 17 | +    },  | 
 | 18 | +    {  | 
 | 19 | +        "trigger": ".o_list_button_add",  | 
 | 20 | +        "run": "click"  | 
 | 21 | +    },  | 
 | 22 | +    {  | 
 | 23 | +        "trigger": ".o_field_widget[name='product_tmpl_id'] .o-autocomplete--input",  | 
 | 24 | +        "run": "edit sofa set (3+1"  | 
 | 25 | +    },  | 
 | 26 | +    {  | 
 | 27 | +        "trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",  | 
 | 28 | +        "run": "click"  | 
 | 29 | +    },  | 
 | 30 | +    {  | 
 | 31 | +        "trigger": ".o_field_x2many_list_row_add > a",  | 
 | 32 | +        "run": "click"  | 
 | 33 | +    },  | 
 | 34 | +    {  | 
 | 35 | +        "trigger": ".o_data_cell[name='product_id'] .o-autocomplete--input",  | 
 | 36 | +        "run": "edit sofa (triple "  | 
 | 37 | +    },  | 
 | 38 | +    {  | 
 | 39 | +        "trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",  | 
 | 40 | +        "run": "click"  | 
 | 41 | +    },  | 
 | 42 | +    {  | 
 | 43 | +        "trigger": ".o_field_x2many_list_row_add > a",  | 
 | 44 | +        "run": "click"  | 
 | 45 | +    },  | 
 | 46 | +    {  | 
 | 47 | +        "trigger": ".o_data_cell[name='product_id'] .o-autocomplete--input",  | 
 | 48 | +        "run": "edit sofa (sing"  | 
 | 49 | +    },  | 
 | 50 | +    {  | 
 | 51 | +        "trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",  | 
 | 52 | +        "run": "click"  | 
 | 53 | +    },  | 
 | 54 | +    {  | 
 | 55 | +        "trigger": ".o_data_cell[name='product_qty'] .o_input",  | 
 | 56 | +        "run": "edit 2"  | 
 | 57 | +    },  | 
 | 58 | +    {  | 
 | 59 | +        "trigger": ".o-mail-Thread > div",  | 
 | 60 | +        "run": "click"  | 
 | 61 | +    },  | 
 | 62 | +    {  | 
 | 63 | +        "trigger": ".o_form_button_save",  | 
 | 64 | +        "run": "click"  | 
 | 65 | +    },  | 
 | 66 | +    {  | 
 | 67 | +        "trigger": ".o_menu_brand",  | 
 | 68 | +        "run": "click"  | 
 | 69 | +    },  | 
 | 70 | +    {  | 
 | 71 | +        "trigger": ".o_app[data-menu-xmlid='sale\\.sale_menu_root']",  | 
 | 72 | +        "run": "click"  | 
 | 73 | +    },  | 
 | 74 | +    {  | 
 | 75 | +        "trigger": ".o_list_button_add",  | 
 | 76 | +        "run": "click"  | 
 | 77 | +    },  | 
 | 78 | +    {  | 
 | 79 | +        "trigger": ".o_field_widget[name='partner_id'] .o-autocomplete--input",  | 
 | 80 | +        "run": "edit excellent furnit"  | 
 | 81 | +    },  | 
 | 82 | +    {  | 
 | 83 | +        "trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",  | 
 | 84 | +        "run": "click"  | 
 | 85 | +    },  | 
 | 86 | +    {  | 
 | 87 | +        "trigger": ".o_field_x2many_list_row_add > a:nth-child(1)",  | 
 | 88 | +        "run": "click"  | 
 | 89 | +    },  | 
 | 90 | +    {  | 
 | 91 | +        "trigger": ".o_field_product_label_section_and_note_cell .o-autocomplete--input",  | 
 | 92 | +        "run": "edit sofa set (3"  | 
 | 93 | +    },  | 
 | 94 | +    {  | 
 | 95 | +        "trigger": ".o-autocomplete--dropdown-item:nth-child(1) > a",  | 
 | 96 | +        "run": "click"  | 
 | 97 | +    },  | 
 | 98 | +    {  | 
 | 99 | +        "trigger": ".o_statusbar_buttons > button[name='action_confirm']",  | 
 | 100 | +        "run": "click"  | 
 | 101 | +    },  | 
 | 102 | +    {  | 
 | 103 | +        "trigger": ".o_button_icon",  | 
 | 104 | +        "run": "click"  | 
 | 105 | +    },  | 
 | 106 | +    {  | 
 | 107 | +        "trigger": ".o_statusbar_buttons > button[name='button_validate']",  | 
 | 108 | +        "run": "click"  | 
 | 109 | +    },  | 
 | 110 | +    {  | 
 | 111 | +        "trigger": ".o_technical_modal button[name='send_sms']",  | 
 | 112 | +        "run": "click"  | 
 | 113 | +    },  | 
 | 114 | +    {  | 
 | 115 | +        "trigger": ".o_back_button > a",  | 
 | 116 | +        "run": "click"  | 
 | 117 | +    },  | 
 | 118 | +    {  | 
 | 119 | +        "trigger": ".o_menu_brand",  | 
 | 120 | +        "run": "click"  | 
 | 121 | +    }  | 
 | 122 | +]  | 
 | 123 | +})  | 
0 commit comments