| 1 |
import { registry } from "@web/core/registry"; |
| 2 |
|
| 3 |
registry.category("web_tour.tours").add("test_stock_picking_batch_sm_to_sml_synchronization", { |
| 4 |
steps: () => [ |
| 5 |
{ |
| 6 |
trigger: ".btn-primary[name=action_confirm]", |
| 7 |
run: "click", |
| 8 |
}, |
| 9 |
{ |
| 10 |
trigger: ".o_data_cell[name=name]", |
| 11 |
run: "click", |
| 12 |
}, |
| 13 |
{ |
| 14 |
content: "Check the modal 'Open: Transfers' is open", |
| 15 |
trigger: ".modal h4:contains(open: transfers)", |
| 16 |
}, |
| 17 |
{ |
| 18 |
content: "Click in cell to start edition", |
| 19 |
trigger: ".modal:contains(open: transfers) .o_data_row > td:contains('Product A')", |
| 20 |
run: "click", |
| 21 |
}, |
| 22 |
{ |
| 23 |
trigger: ".modal:contains(open: transfers) .o_list_number > div[name=quantity] input", |
| 24 |
run: "edit 7", |
| 25 |
}, |
| 26 |
{ |
| 27 |
trigger: ".modal:contains(open: transfers) button:contains('Details')", |
| 28 |
run: "click", |
| 29 |
}, |
| 30 |
{ |
| 31 |
trigger: ".modal:contains(detailed operations)", |
| 32 |
}, |
| 33 |
{ |
| 34 |
trigger: |
| 35 |
".modal:contains(detailed operations) .o_field_pick_from > .o_many2one:contains('WH/Stock/Shelf A')", |
| 36 |
run: "click", |
| 37 |
}, |
| 38 |
{ |
| 39 |
trigger: ".modal:contains(detailed operations) .o_list_number[name=quantity] input", |
| 40 |
run: "edit 2", |
| 41 |
}, |
| 42 |
{ |
| 43 |
trigger: |
| 44 |
".modal:contains(detailed operations) .o_list_footer .o_list_number", |
| 45 |
run: "click" |
| 46 |
}, |
| 47 |
{ |
| 48 |
trigger: |
| 49 |
".modal:contains(detailed operations) .o_list_footer .o_list_number > span:contains('2')", |
| 50 |
}, |
| 51 |
{ |
| 52 |
content: "Click Save", |
| 53 |
trigger: ".modal:contains(detailed operations) .o_form_button_save", |
| 54 |
run: "click", |
| 55 |
}, |
| 56 |
{ |
| 57 |
content: "Click in cell to start edition", |
| 58 |
trigger: ".modal:contains(open: transfers) .o_data_row > td:contains('Product A')", |
| 59 |
}, |
| 60 |
{ |
| 61 |
content: "Click in cell to start edition", |
| 62 |
trigger: ".modal:contains(open: transfers) .o_data_row > td:contains('Product A')", |
| 63 |
run: "click", |
| 64 |
}, |
| 65 |
{ |
| 66 |
trigger: ".modal:contains(open: transfers) .o_list_number[name=quantity] input", |
| 67 |
run: "edit 21", |
| 68 |
}, |
| 69 |
{ |
| 70 |
trigger: ".modal:contains(open: transfers) button:contains('Details')", |
| 71 |
run: "click", |
| 72 |
}, |
| 73 |
{ |
| 74 |
trigger: "h4:contains(detailed operations)", |
| 75 |
}, |
| 76 |
{ |
| 77 |
content: "Click in cell to start edition", |
| 78 |
trigger: |
| 79 |
".modal:contains(detailed operations) .o_field_pick_from > .o_many2one:contains('WH/Stock/Shelf A')", |
| 80 |
run: "click", |
| 81 |
}, |
| 82 |
{ |
| 83 |
trigger: ".modal:contains(detailed operations) .o_list_number[name=quantity] input", |
| 84 |
run: "edit 27", |
| 85 |
}, |
| 86 |
{ |
| 87 |
content: "Click Save", |
| 88 |
trigger: ".modal:contains(detailed operations) .o_form_button_save:contains(save)", |
| 89 |
run: "click", |
| 90 |
}, |
| 91 |
{ |
| 92 |
content: "Click in cell to start edition", |
| 93 |
trigger: ".modal:contains(open: transfers) .o_data_row > td:contains(27)", |
| 94 |
run: "click", |
| 95 |
}, |
| 96 |
{ |
| 97 |
trigger: ".modal:contains(open: transfers) .o_field_widget[name=quantity] input", |
| 98 |
run: "edit 7", |
| 99 |
}, |
| 100 |
{ |
| 101 |
trigger: ".modal:contains(open: transfers) button:contains('Details')", |
| 102 |
run: "click", |
| 103 |
}, |
| 104 |
{ |
| 105 |
trigger: ".modal:contains(detailed operations) .o_data_row > td:contains(7)", |
| 106 |
}, |
| 107 |
{ |
| 108 |
content: "Click Save", |
| 109 |
trigger: ".modal:contains(detailed operations) .o_form_button_save", |
| 110 |
run: "click", |
| 111 |
}, |
| 112 |
{ |
| 113 |
trigger: ".modal:contains(open: transfers) .o_form_button_save", |
| 114 |
run: "click", |
| 115 |
}, |
| 116 |
], |
| 117 |
}); |