19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:32:34 +01:00
parent 5faf7397c5
commit 2696f14ed7
721 changed files with 220375 additions and 91221 deletions

View file

@ -1,34 +1,33 @@
odoo.define('debug_menu_set_defaults.tour', function (require) {
"use strict";
import { registry } from "@web/core/registry";
import { stepUtils } from "@web_tour/tour_utils";
var tour = require('web_tour.tour');
tour.register('debug_menu_set_defaults', {
test: true,
url: '/web?debug=1',
},
[
...tour.stepUtils.goToAppSteps('contacts.menu_contacts', "Open the contacts menu"),
registry.category("web_tour.tours").add('debug_menu_set_defaults', {
url: '/odoo?debug=1',
steps: () => [
...stepUtils.goToAppSteps('contacts.menu_contacts', "Open the contacts menu"),
{
content: "Create a new contact",
trigger: '.o-kanban-button-new',
trigger: '.o_list_button_add',
run: "click",
},
{
content: "Check that Company is checked by default, and not Individual",
trigger: '.o_field_widget[name="company_type"] input[data-value="company"]:checked',
run: function () {},
},
{
content: "Select the individual radio button",
trigger: '.o_field_widget[name="company_type"] input[data-value="person"]',
run: "click",
},
{
content: "Open the debug menu",
trigger: '.o_debug_manager button',
run: "click",
},
{
content: "Click the Set Defaults menu",
trigger: '.o_debug_manager .dropdown-item:contains(Set Defaults)',
trigger: '.dropdown-item:contains(Set Default Values)',
run: "click",
},
{
content: "Choose Company Type = Individual",
@ -42,33 +41,34 @@ odoo.define('debug_menu_set_defaults.tour', function (require) {
{
content: "Check that there are conditions",
trigger: '#formview_default_conditions',
run: "click",
},
{
content: "Save the new default",
trigger: 'footer button:contains(Save default)',
run: "click",
},
{
content: "Discard the contact creation",
trigger: 'button.o_form_button_cancel',
run: "click",
},
{
trigger: '.o-kanban-button-new',
trigger: '.o_action_manager > .o_list_view .o_list_button_add',
run: "click",
},
{
content: "Check that Individual is checked instead of Company",
trigger: '.o_field_widget[name="company_type"] input[data-value="person"]:checked',
run: function () {},
},
{
content: "Discard the contact creation",
trigger: 'button.o_form_button_cancel',
run: "click",
},
{
content: "Wait for discard",
trigger: '.o_control_panel .o-kanban-button-new',
run() {},
trigger: '.o_control_panel .o_list_button_add',
},
]
);
});
});