/** @odoo-module **/ import { _t } from "@web/core/l10n/translation"; import { registry } from "@web/core/registry"; import { markup } from "@odoo/owl"; registry.category("web_tour.tours").add("helpdesk_tour", { url: "/odoo", steps: () => [ { trigger: '.o_app[data-menu-xmlid="helpdesk.menu_helpdesk_root"]', content: markup(_t('Want to boost your customer satisfaction?
Click Helpdesk to start.')), tooltipPosition: 'bottom', run: "click", }, { isActive: ["auto"], trigger: ".o_helpdesk_ticket_btn", }, { trigger: 'button.oe_kanban_action', content: markup(_t('Let\'s view your team\'s tickets.')), tooltipPosition: 'bottom', run: "click", }, { isActive: ["auto"], trigger: ".o_helpdesk_ticket_kanban_view", }, { trigger: '.o-kanban-button-new', content: markup(_t('Let\'s create your first ticket.')), tooltipPosition: 'bottom', run: "click", }, { isActive: ["auto"], trigger: ".o_form_editable", }, { trigger: '.o_field_widget input.o_input', content: markup(_t('Enter the subject of your ticket
(e.g. Problem with my installation, Wrong order, etc.).')), tooltipPosition: 'right', run: "edit SAP is bad, paid by Odoo", }, { isActive: ["auto"], trigger: ".o_form_editable", }, { trigger: 'div[name=partner_id] input', content: _t('Select the customer of your ticket.'), tooltipPosition: 'top', run: "edit Deco", }, { isActive: ["auto"], trigger: ".o_form_editable", }, { trigger: 'a.dropdown-item:contains(Deco)', run: "click", }, { isActive: ["auto"], trigger: ".o_form_view", }, { trigger: 'button:contains(Add)', content: _t('Save this ticket and the modifications you\'ve made to it.'), tooltipPosition: 'bottom', run: "click", }, { isActive: ["auto"], trigger: ".o_form_view", }, { trigger: 'span:contains(SAP is bad, paid by Odoo)', content: _t('Open the ticket.'), tooltipPosition: 'bottom', run: "click", }, { isActive: ["auto"], trigger: ".o_form_view", }, { trigger: ".o-mail-Chatter-topbar button:contains(Send message)", content: markup(_t("Use the chatter to send emails and communicate efficiently with your customers. Add new people to the followers' list to make them aware of the progress of this ticket.")), tooltipPosition: "bottom", run: "click", }, { isActive: ["auto"], trigger: ".o_form_view", }, { trigger: "button:contains(Log note)", content: markup(_t("Log notes for internal communications (you will only notify the persons you specifically tag). Use @ mentions to ping a colleague or # mentions to contact a group of people.")), tooltipPosition: "bottom", run: "click", }, { isActive: ["auto"], trigger: ".o_form_view .o_form_saved", }, { trigger: "button:contains(Activities)", content: markup(_t("Use activities to organize your daily work.")), run: "click", }, { trigger: ".modal-dialog .btn-primary", content: markup(_t("Schedule your activity.")), tooltipPosition: "right", run: "click", }, { isActive: ["auto"], trigger: ".o_form_view", }, { trigger: '.o_back_button', content: markup(_t("Let's go back to the kanban view to get an overview of your next tickets.")), tooltipPosition: 'bottom', run: "click", }, { trigger: 'body:not(:has(div.o_view_sample_data)) .o_helpdesk_ticket_kanban_view .o_kanban_record', content: markup(_t('Drag & drop the card to change the stage of your ticket.')), tooltipPosition: 'right', run: "drag_and_drop(.o_kanban_group:eq(2))", }, { trigger: ".o_column_quick_create .o_quick_create_folded", content: markup(_t('Adapt your pipeline to your workflow by adding stages (e.g. Awaiting Customer Feedback, etc.).')), tooltipPosition: 'right', run: "click", }, { trigger: ".o_column_quick_create .o_kanban_add", content: _t("Add your stage and place it at the right step of your workflow by dragging & dropping it."), tooltipPosition: 'right', run: "click", }, { isActive: ["auto"], trigger: ".o_column_quick_create .o_kanban_add", content: "Clicking on 'Add' when input name is empty won't do anything, 'Add' will still be displayed", } ], });