19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:47 +01:00
parent accf5918df
commit 6e65e8c877
688 changed files with 225434 additions and 199401 deletions

View file

@ -1,70 +1,34 @@
/** @odoo-module **/
import tour from 'web_tour.tour';
tour.register('test_mrp_manual_consumption', {test: true}, [
{
trigger: 'div[name=move_raw_ids] td[name="quantity_done"]:last:contains("5.00")',
run: () => {},
},
{
trigger: 'div[name=move_raw_ids] td[name="quantity_done"]:last',
run: 'click',
},
{
trigger: 'div[name="quantity_done"] input',
run: 'text 6.0'
},
{
content: "Click Pager",
trigger: ".o_pager_value:first()",
},
{
trigger: "input[id='qty_producing']",
run: 'text 8.0',
},
{
content: "Click Pager",
trigger: ".o_pager_value:first()",
},
{
trigger: 'div[name=move_raw_ids] td[name="quantity_done"]:last:contains("6.00")',
run: () => {},
},
{
trigger: 'button[name=button_mark_done]',
run: 'click',
},
{
trigger: 'button[name=action_confirm]',
extra_trigger: '.o_technical_modal',
run: 'click',
},
{
trigger: 'button[name=action_backorder]',
run: 'click',
},
{
trigger: "input[id='qty_producing']",
run: 'text 2.0',
},
{
content: "Click Pager",
trigger: ".o_pager_value:first()",
},
{
trigger: 'div[name=move_raw_ids] td[name="quantity_done"]:last:contains("2.00")',
run: () => {},
},
{
trigger: 'button[name=button_mark_done]',
run: 'click',
},
{
trigger: 'button[name=action_confirm]',
extra_trigger: '.o_technical_modal',
run: 'click',
},
...tour.stepUtils.saveForm(),
]);
import { registry } from "@web/core/registry";
import { stepUtils } from '@web_tour/tour_utils';
registry.category("web_tour.tours").add('test_mrp_manual_consumption_02', {
steps: () => [
{
trigger: 'div[name=move_raw_ids] td[name="quantity"]:last:contains("0.00")',
},
{
trigger: 'div[name=move_raw_ids] td[name="quantity"]:last',
run: 'click',
},
{
trigger: 'div[name="quantity"] input',
run: "edit 16.0 && click body",
},
{
content: "Click Pager",
trigger: ".o_pager_value:first()",
run: "click",
},
{
trigger: "input[id='qty_producing_0']",
run: "edit 8.0 && click body",
},
{
content: "Click Pager",
trigger: ".o_pager_value:first()",
run: "click",
},
{
trigger: 'div[name=move_raw_ids] td[name="quantity"]:last:contains("16.00")',
},
...stepUtils.saveForm(),
]});

View file

@ -0,0 +1,25 @@
import { registry } from "@web/core/registry";
registry.category("web_tour.tours").add("test_manufacture_from_bom", {
steps: () => [
{
trigger: '[name="product_tmpl_id"]',
run: "click",
},
{
trigger: '.o_stat_text:contains("BoM Overview")',
run: "click",
},
{
trigger: '.fa-toggle-off',
run: "click",
},
{
trigger: 'button.btn-primary:contains("Manufacture")',
run: "click",
},
{
trigger: 'button[aria-checked="true"]:contains("Draft")',
},
],
});

View file

@ -0,0 +1,47 @@
import { registry } from "@web/core/registry";
registry.category("web_tour.tours").add('test_mrp_bom_product_catalog', {
steps: () => [
{
trigger: 'button[name=action_add_from_catalog]',
run: "click",
},
{
trigger: '.o_kanban_record:nth-child(1)',
run: "click",
},
{
trigger: '.o_product_added',
run: "click",
},
{
trigger: 'button:contains("Back to BoM")',
run: "click",
},
{
trigger: 'div.o_field_one2many:contains("Component")',
},
]});
registry.category("web_tour.tours").add('test_mrp_production_product_catalog', {
steps: () => [
{
trigger: 'button[name=action_add_from_catalog_raw]',
run: "click",
},
{
trigger: '.o_kanban_record:nth-child(1)',
run: "click",
},
{
trigger: '.o_product_added',
run: "click",
},
{
trigger: 'button:contains("Back to Production")',
run: "click",
},
{
trigger: 'div.o_field_widget:contains("WH/MO/")',
},
]});

View file

@ -0,0 +1,27 @@
/** @odoo-module **/
import { registry } from "@web/core/registry";
registry.category("web_tour.tours").add("mrp_bom_report_tour", {
steps: () => [
{
content: "Check the current displayed variant",
trigger: ".o_mrp_bom_report_page h2 a:contains('[alpaca] Product Test Sync (L)')",
run: () => {},
},
{
content: "Open dropdown menu",
trigger: ".o-autocomplete--input",
run: "click",
},
{
content: "Select the other variant",
trigger: ".o-autocomplete--dropdown-menu.show li.o-autocomplete--dropdown-item:eq(1)",
run: "click",
},
{
content: "Ensure the second variant is displayed",
trigger: ".o_mrp_bom_report_page h2 a:contains('[zebra] Product Test Sync (S)')",
run: () => {},
},
],
});

View file

@ -0,0 +1,163 @@
import { registry } from "@web/core/registry";
registry.category("web_tour.tours").add('test_manufacturing_and_byproduct_sm_to_sml_synchronization', {
steps: () => [
{
trigger: ".btn-primary[name=action_confirm]",
run: "click",
},
{
trigger: ".o_data_row:has([name=quantity]:contains(5.00)) > td:contains(product2)",
run: "click",
},
{
trigger: "button:contains('Details')",
run: "click",
},
{
trigger: "h4:contains('Components')",
run: "click",
},
{
trigger: ".modal .o_list_number:contains(5)",
},
{
content: "Click Save",
trigger: ".modal .modal-footer .o_form_button_save",
run: "click",
},
{
trigger: ".o_data_row:has([name=quantity]:contains(5.00)) > td:contains(product2)",
run: "click",
},
{
trigger: ".o_field_widget[name=quantity] input",
run: 'edit 21',
},
{
trigger: "button:contains('Details')",
run: "click",
},
{
trigger: "h4:contains('Components')",
run: "click",
},
{
trigger: ".modal .modal-body .o_data_row > td:contains('WH/Stock')",
run: "click",
},
{
trigger: ".modal .modal-body .o_field_widget[name=quantity] input",
run: 'edit 25',
},
{
content: "Click Save",
trigger: ".modal .modal-footer .o_form_button_save",
run: "click",
},
{
trigger: ".o_data_row:has([name=product_uom_qty]:contains(5.00)) > td:contains(25)",
run: "click",
},
{
trigger: ".o_field_widget[name=quantity] input",
run: 'edit 7',
},
{
trigger: "button:contains('Details')",
run: "click",
},
{
trigger: ".modal .o_data_row > td:contains('7')",
run: "click",
},
{
content: "Click Save",
trigger: ".modal .modal-footer .o_form_button_save",
run: "click",
},
{
trigger: ".nav-link[name=finished_products]",
run: "click",
},
{
trigger: ".o_data_row:has([name=quantity]:contains(2.00)) > td:contains(product2)",
run: "click",
},
{
trigger: ".fa-list",
run: "click",
},
{
trigger: "h4:contains('Move Byproduct')",
run: "click",
},
{
trigger: ".modal .modal-body .o_data_row > td:contains('WH/Stock')",
run: "click",
},
{
trigger: ".modal .modal-body .o_field_widget[name=quantity] input",
run: 'edit 2',
},
{
content: "Click Save",
trigger: ".modal .modal-footer .o_form_button_save",
run: "click",
},
{
trigger: ".o_data_row:has([name=quantity]:contains(2.00)) > td[name=product_id]:contains(product2)",
run: "dblclick",
},
{
trigger: ".o_field_widget[name=quantity] input",
run: 'edit 5',
},
{
trigger: ".fa-list",
run: "click",
},
{
trigger: "h4:contains('Move Byproduct')",
run: "click",
},
{
trigger: ".modal .modal-body .o_data_row > td:contains('WH/Stock')",
run: "click",
},
{
trigger: ".modal .modal-body .o_field_widget[name=quantity] input",
run: 'edit 7',
},
{
content: "Click Save",
trigger: ".modal .modal-footer .o_form_button_save",
run: "click",
},
{
trigger: ".o_data_row:has([name=product_uom_qty]:contains(2.00)) > td:contains(10)",
run: "click",
},
{
trigger: ".o_field_widget[name=quantity] input",
run: 'edit 7',
},
{
trigger: ".fa-list",
run: "click",
},
{
trigger: ".o_list_footer .o_list_number > span:contains('7')",
run: "click",
},
{
content: "Click Save",
trigger: ".modal .modal-footer .o_form_button_save",
run: "click",
},
{
content: "wait for save completion",
trigger: ".o_form_readonly, .o_form_saved",
},
]
});