@@ -358,7 +358,6 @@
-
diff --git a/addons/hr_recruitment/__openerp__.py b/addons/hr_recruitment/__openerp__.py
index d2214a3150f..1489c1ef49c 100644
--- a/addons/hr_recruitment/__openerp__.py
+++ b/addons/hr_recruitment/__openerp__.py
@@ -26,6 +26,7 @@ You can define the different phases of interviews and easily rate the applicant
'web_kanban_gauge',
'utm',
'document',
+ 'web_tour',
],
'data': [
'security/hr_recruitment_security.xml',
@@ -38,6 +39,7 @@ You can define the different phases of interviews and easily rate the applicant
'views/hr_recruitment_templates.xml',
'views/hr_department_views.xml',
'views/hr_job_views.xml',
+ 'views/tour_views.xml',
],
'demo': ['data/hr_recruitment_demo.xml'],
'test': ['test/recruitment_process.yml'],
diff --git a/addons/hr_recruitment/models/hr_job.py b/addons/hr_recruitment/models/hr_job.py
index a8bb7e18c79..bcbf5033661 100644
--- a/addons/hr_recruitment/models/hr_job.py
+++ b/addons/hr_recruitment/models/hr_job.py
@@ -91,3 +91,7 @@ class Job(models.Model):
@api.multi
def action_set_no_of_recruitment(self, value):
return self.write({'no_of_recruitment': value})
+
+ @api.multi
+ def close_dialog(self):
+ return {'type': 'ir.actions.act_window_close'}
diff --git a/addons/hr_recruitment/static/src/js/tour.js b/addons/hr_recruitment/static/src/js/tour.js
new file mode 100644
index 00000000000..47fe9d60904
--- /dev/null
+++ b/addons/hr_recruitment/static/src/js/tour.js
@@ -0,0 +1,36 @@
+odoo.define('hr_recruitment.tour', function(require) {
+"use strict";
+
+var core = require('web.core');
+var tour = require('web_tour.tour');
+
+var _t = core._t;
+
+tour.register('hr_recruitment_tour', {
+ 'skip_enabled': true,
+}, [{
+ trigger: '.o_app[data-menu-xmlid="hr_recruitment.menu_hr_recruitment_root"], .oe_menu_toggler[data-menu-xmlid="hr_recruitment.menu_hr_recruitment_root"]',
+ content: _t('Want to
start recruiting like a pro?
Start here.'),
+ position: 'bottom',
+}, {
+ trigger: ".oe_kanban_action_button",
+ extra_trigger: '.o_hr_recruitment_kanban',
+ content: _t("Let\'s have a look at the
applications pipeline for this job position."),
+ position: "bottom"
+}, {
+ trigger: ".o_kanban_applicant .o_column_quick_create",
+ content: _t("Add columns to define the
interview stages.
e.g. New > Qualified > First Interview > Recruited"),
+ position: "right"
+}, {
+ trigger: ".breadcrumb li:not(.active):last",
+ extra_trigger: '.o_kanban_applicant',
+ content: _t("Use the breadcrumbs to
go back to the dashboard."),
+ position: "bottom"
+}, {
+ trigger: ".o_job_alias",
+ extra_trigger: '.o_hr_recruitment_kanban',
+ content: _t("Try to send an email to this address, it will create an application automatically."),
+ position: "bottom"
+}]);
+
+});
diff --git a/addons/hr_recruitment/views/hr_job_views.xml b/addons/hr_recruitment/views/hr_job_views.xml
index 68f2fb53cbb..74c2b6419e9 100644
--- a/addons/hr_recruitment/views/hr_job_views.xml
+++ b/addons/hr_recruitment/views/hr_job_views.xml
@@ -12,7 +12,7 @@
hr.job.kanban
hr.job
-
+
@@ -31,10 +31,8 @@