mirror of
https://github.com/bringout/oca-ocb-technical.git
synced 2026-04-21 23:32:10 +02:00
19.0 vanilla
This commit is contained in:
parent
5faf7397c5
commit
2696f14ed7
721 changed files with 220375 additions and 91221 deletions
|
|
@ -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',
|
||||
},
|
||||
]
|
||||
);
|
||||
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue