import { _t } from "@web/core/l10n/translation"; import { registry } from "@web/core/registry"; import { stepUtils } from "@web_tour/tour_utils"; import { markup } from "@odoo/owl"; registry.category("web_tour.tours").add('hr_recruitment_tour',{ url: "/odoo", steps: () => [stepUtils.showAppsMenuItem(), { isActive: ["community"], trigger: '.o_app[data-menu-xmlid="hr_recruitment.menu_hr_recruitment_root"]', content: markup(_t("Let's have a look at how to improve your hiring process.")), tooltipPosition: 'right', run: "click", }, { isActive: ["enterprise"], trigger: '.o_app[data-menu-xmlid="hr_recruitment.menu_hr_recruitment_root"]', content: markup(_t("Let's have a look at how to improve your hiring process.")), tooltipPosition: 'bottom', run: "click", }, { trigger: ".o-kanban-button-new", content: _t("Create your first Job Position."), tooltipPosition: "bottom", run: "click", }, { trigger: ".o_hr_job_simple_form", }, { trigger: ".o_job_name", content: _t("What do you want to recruit today? Choose a job title..."), tooltipPosition: "right", run: "click", }, { trigger: '.o_hr_job_simple_form', }, { trigger: ".o_job_alias", content: _t("Choose an application email."), tooltipPosition: "right", run: "click", }, { trigger: '.o_create_job', content: _t('Let\'s create the position. An email will be setup for applications, and a public job description, if you use the Website app.'), tooltipPosition: 'bottom', run: "click .modal:visible .btn.btn-primary", }, { trigger: ".o_copy_paste_email", content: _t("Copy this email address, to paste it in your email composer, to apply."), tooltipPosition: "bottom", run: "click", }, { trigger: ".o_kanban_applicant", }, { trigger: ".breadcrumb-item:not(.active):last", content: _t("Let’s go back to the dashboard."), tooltipPosition: "bottom", run: "click", }, { trigger: ".o_hr_recruitment_kanban", }, { trigger: "button.oe_kanban_action", content: markup(_t("Did you apply by sending an email? Check incoming applications.")), tooltipPosition: "bottom", run: "click", }, { trigger: ".o_kanban_applicant", }, { trigger: ".o_kanban_record", content: markup(_t("Drag this card, to qualify him for a first interview.")), tooltipPosition: "bottom", run: "drag_and_drop(.o_kanban_group:eq(1))", }, { trigger: ".o_kanban_applicant", }, { trigger: ".o_kanban_record", content: markup(_t("Click to view the application.")), tooltipPosition: "bottom", run: "click", }, { trigger: ".o_applicant_form", }, { trigger: "button:contains(Send message)", content: markup(_t("
Try to send an email to the applicant.
Tips: All emails sent or received are saved in the history here")), tooltipPosition: "bottom", run: "click", }, { trigger: ".o_applicant_form", }, { trigger: ".o-mail-Chatter .o-mail-Composer button[aria-label='Send']", content: _t("Send your email. Followers will get a copy of the communication."), tooltipPosition: "bottom", run: "click", }, { trigger: ".o_applicant_form", }, { trigger: "button:contains(Log note)", content: _t("Or talk about this applicant privately with your colleagues."), tooltipPosition: "bottom", run: "click", }, { trigger: ".o_applicant_form", }, { trigger: ".o_create_employee", content: _t("Let’s create this new employee now."), tooltipPosition: "bottom", run: "click", }, { trigger: ".o_hr_employee_form_view", }, { trigger: ".o_form_button_save", content: _t("Save it!"), tooltipPosition: "bottom", run: "click", }]});