19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:32:12 +01:00
parent 79f83631d5
commit 73afc09215
6267 changed files with 1534193 additions and 1130106 deletions

View file

@ -1,77 +1,59 @@
odoo.define('event.event_configurator_tour', function (require) {
"use strict";
var tour = require('web_tour.tour');
tour.register('event_configurator_tour', {
url: "/web",
test: true,
}, [tour.stepUtils.showAppsMenuItem(), {
trigger: '.o_app[data-menu-xmlid="sale.sale_menu_root"]',
edition: 'community'
}, {
trigger: '.o_app[data-menu-xmlid="sale.sale_menu_root"]',
edition: 'enterprise'
}, {
trigger: ".o_list_button_add",
extra_trigger: ".o_sale_order"
}, {
trigger: "a:contains('Add a product')"
}, {
trigger: 'div[name="product_id"] input, div[name="product_template_id"] input',
run: function (actions) {
actions.text('Event Registration');
}
}, {
trigger: 'ul.ui-autocomplete a:contains("Event Registration")',
run: 'click'
}, {
trigger: 'div[name="event_id"] input',
run: 'click'
}, {
trigger: 'ul.ui-autocomplete a:contains("Design")',
run: 'click',
in_modal: false
}, {
trigger: 'div[name="event_ticket_id"] input',
run: 'click'
}, {
trigger: 'ul.ui-autocomplete a:contains("VIP")',
run: 'click',
in_modal: false
}, {
trigger: '.o_event_sale_js_event_configurator_ok'
}, {
trigger: "td[name='name'][data-tooltip*='VIP']",
run: function () {} // check
}, {
trigger: 'ul.nav a:contains("Order Lines")',
run: 'click'
}, {
content: "search the partner",
trigger: 'div[name="partner_id"] input',
run: 'text Azure'
}, {
content: "select the partner",
trigger: 'ul.ui-autocomplete > li > a:contains(Azure)',
}, {
trigger: 'td:contains("Event")',
run: 'click'
}, {
trigger: 'button.fa-pencil'
}, {
trigger: 'div[name="event_ticket_id"] input',
run: 'click'
}, {
trigger: 'ul.ui-autocomplete a:contains("Standard")',
run: 'click',
in_modal: false
}, {
trigger: '.o_event_sale_js_event_configurator_ok'
}, {
trigger: "td[name='name'][data-tooltip*='Standard']",
run: function () {} // check
}, ...tour.stepUtils.saveForm()
]);
import { registry } from "@web/core/registry";
import { stepUtils } from "@web_tour/tour_utils";
import tourUtils from "@sale/js/tours/tour_utils";
registry.category("web_tour.tours").add("event_configurator_tour", {
url: "/odoo",
steps: () => [
...stepUtils.goToAppSteps("sale.sale_menu_root", "Go to the Sales App"),
...tourUtils.createNewSalesOrder(),
...tourUtils.selectCustomer("Azure"),
...tourUtils.addProduct("Event Registration"),
{
trigger: 'div[name="event_id"] input',
run: "click",
},
{
trigger: "ul.ui-autocomplete a:text(Design Fair Los Angeles)",
run: "click",
},
{
trigger: 'div[name="event_ticket_id"] input',
run: "click",
},
{
trigger: "ul.ui-autocomplete a:contains(VIP)",
run: "click",
},
{
trigger: ".modal .o_event_sale_js_event_configurator_ok",
run: "click",
},
{
content: "Wait the modal is closed",
trigger: "body:not(:has(.modal))",
},
...tourUtils.clickSomewhereElse(),
tourUtils.editLineMatching("Event Registration", "VIP"),
tourUtils.editConfiguration(),
{
trigger: 'div[name="event_ticket_id"] input',
run: "click",
},
{
trigger: "ul.ui-autocomplete a:contains(Standard)",
run: "click",
},
{
trigger: ".modal .o_event_sale_js_event_configurator_ok",
run: "click",
},
{
content: "Wait the modal is closed",
trigger: "body:not(:has(.modal))",
},
...tourUtils.clickSomewhereElse(),
tourUtils.checkSOLDescriptionContains("Event Registration", "Standard"),
...stepUtils.saveForm(),
],
});