2021-07-01 15:08:23 +00:00
|
|
|
/** @odoo-module */
|
|
|
|
|
|
2023-11-23 13:16:48 +01:00
|
|
|
import { _t } from 'web.core';
|
2021-07-01 15:08:23 +00:00
|
|
|
import wTourUtils from 'website.tour_utils';
|
2021-05-10 15:45:35 +02:00
|
|
|
|
|
|
|
|
const snippets = [
|
|
|
|
|
{
|
2021-07-01 15:08:23 +00:00
|
|
|
id: 's_cover',
|
|
|
|
|
name: 'Cover',
|
2021-05-10 15:45:35 +02:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 's_image_text',
|
|
|
|
|
name: 'Image - Text',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 's_media_list',
|
|
|
|
|
name: 'Media List',
|
|
|
|
|
},
|
2021-07-01 15:08:23 +00:00
|
|
|
{
|
|
|
|
|
id: 's_company_team',
|
|
|
|
|
name: 'Team',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
id: 's_references',
|
|
|
|
|
name: 'References',
|
|
|
|
|
},
|
2021-05-10 15:45:35 +02:00
|
|
|
{
|
|
|
|
|
id: 's_call_to_action',
|
|
|
|
|
name: 'Call to Action',
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
wTourUtils.registerThemeHomepageTour("odoo_experts_tour", [
|
|
|
|
|
wTourUtils.dragNDrop(snippets[0]),
|
|
|
|
|
wTourUtils.clickOnText(snippets[0], 'h1'),
|
|
|
|
|
wTourUtils.goBackToBlocks(),
|
|
|
|
|
wTourUtils.dragNDrop(snippets[1]),
|
|
|
|
|
wTourUtils.dragNDrop(snippets[2]),
|
|
|
|
|
wTourUtils.dragNDrop(snippets[3]),
|
2021-07-01 15:08:23 +00:00
|
|
|
wTourUtils.dragNDrop(snippets[4]),
|
|
|
|
|
wTourUtils.clickOnSnippet(snippets[4], 'top'),
|
|
|
|
|
wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')),
|
|
|
|
|
wTourUtils.goBackToBlocks(),
|
|
|
|
|
wTourUtils.dragNDrop(snippets[5]),
|
2021-05-10 15:45:35 +02:00
|
|
|
]);
|