Debian Codegraph @

addons/hr_recruitment/static/src/js/tours/hr_recruitment.js

raw
1 import { _t } from "@web/core/l10n/translation";
2 import { registry } from "@web/core/registry";
3 import { stepUtils } from "@web_tour/tour_utils";
4 import { markup } from "@odoo/owl";
5
6 registry.category("web_tour.tours").add('hr_recruitment_tour',{
7 url: "/odoo",
8 steps: () => [stepUtils.showAppsMenuItem(), {
9 isActive: ["community"],
10 trigger: '.o_app[data-menu-xmlid="hr_recruitment.menu_hr_recruitment_root"]',
11 content: markup(_t("Let's have a look at how to <b>improve</b> your <b>hiring process</b>.")),
12 tooltipPosition: 'right',
13 run: "click",
14 }, {
15 isActive: ["enterprise"],
16 trigger: '.o_app[data-menu-xmlid="hr_recruitment.menu_hr_recruitment_root"]',
17 content: markup(_t("Let's have a look at how to <b>improve</b> your <b>hiring process</b>.")),
18 tooltipPosition: 'bottom',
19 run: "click",
20 }, {
21 trigger: ".o-kanban-button-new",
22 content: _t("Create your first Job Position."),
23 tooltipPosition: "bottom",
24 run: "click",
25 },
26 {
27 trigger: ".o_hr_job_simple_form",
28 },
29 {
30 trigger: ".o_job_name",
31 content: _t("What do you want to recruit today? Choose a job title..."),
32 tooltipPosition: "right",
33 run: "click",
34 },
35 {
36 trigger: '.o_hr_job_simple_form',
37 },
38 {
39 trigger: ".o_job_alias",
40 content: _t("Choose an application email."),
41 tooltipPosition: "right",
42 run: "click",
43 }, {
44 trigger: '.o_create_job',
45 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.'),
46 tooltipPosition: 'bottom',
47 run: "click .modal:visible .btn.btn-primary",
48 }, {
49 trigger: ".o_copy_paste_email",
50 content: _t("Copy this email address, to paste it in your email composer, to apply."),
51 tooltipPosition: "bottom",
52 run: "click",
53 },
54 {
55 trigger: ".o_kanban_applicant",
56 },
57 {
58 trigger: ".breadcrumb-item:not(.active):last",
59 content: _t("Let’s go back to the dashboard."),
60 tooltipPosition: "bottom",
61 run: "click",
62 },
63 {
64 trigger: ".o_hr_recruitment_kanban",
65 },
66 {
67 trigger: "button.oe_kanban_action",
68 content: markup(_t("<b>Did you apply by sending an email?</b> Check incoming applications.")),
69 tooltipPosition: "bottom",
70 run: "click",
71 },
72 {
73 trigger: ".o_kanban_applicant",
74 },
75 {
76 trigger: ".o_kanban_record",
77 content: markup(_t("<b>Drag this card</b>, to qualify him for a first interview.")),
78 tooltipPosition: "bottom",
79 run: "drag_and_drop(.o_kanban_group:eq(1))",
80 },
81 {
82 trigger: ".o_kanban_applicant",
83 },
84 {
85 trigger: ".o_kanban_record",
86 content: markup(_t("<b>Click to view</b> the application.")),
87 tooltipPosition: "bottom",
88 run: "click",
89 },
90 {
91 trigger: ".o_applicant_form",
92 },
93 {
94 trigger: "button:contains(Send message)",
95 content: markup(_t("<div><b>Try to send an email</b> to the applicant.</div><div><i>Tips: All emails sent or received are saved in the history here</i>")),
96 tooltipPosition: "bottom",
97 run: "click",
98 },
99 {
100 trigger: ".o_applicant_form",
101 },
102 {
103 trigger: ".o-mail-Chatter .o-mail-Composer button[aria-label='Send']",
104 content: _t("Send your email. Followers will get a copy of the communication."),
105 tooltipPosition: "bottom",
106 run: "click",
107 },
108 {
109 trigger: ".o_applicant_form",
110 },
111 {
112 trigger: "button:contains(Log note)",
113 content: _t("Or talk about this applicant privately with your colleagues."),
114 tooltipPosition: "bottom",
115 run: "click",
116 },
117 {
118 trigger: ".o_applicant_form",
119 },
120 {
121 trigger: ".o_create_employee",
122 content: _t("Let’s create this new employee now."),
123 tooltipPosition: "bottom",
124 run: "click",
125 },
126 {
127 trigger: ".o_hr_employee_form_view",
128 },
129 {
130 trigger: ".o_form_button_save",
131 content: _t("Save it!"),
132 tooltipPosition: "bottom",
133 run: "click",
134 }]});