summaryrefslogtreecommitdiff
path: root/addons/website_hr_recruitment
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2016-08-09 16:17:17 +0200
committerThibault Delavallée <tde@openerp.com>2016-08-10 15:48:07 +0200
commitc8a313d51e57e9db52758a2c92c13044efef5a6a (patch)
tree5d213f21f33e815804206e36bf4f6c807a6a122c /addons/website_hr_recruitment
parent5ce159924c235c06e4b1f6f653fe305932b83b5a (diff)
[IMP] various: use odoo for imports instead of openerp and update class names
Diffstat (limited to 'addons/website_hr_recruitment')
-rw-r--r--addons/website_hr_recruitment/controllers/main.py12
-rw-r--r--addons/website_hr_recruitment/tests/test_website_hr_recruitment.py14
2 files changed, 14 insertions, 12 deletions
diff --git a/addons/website_hr_recruitment/controllers/main.py b/addons/website_hr_recruitment/controllers/main.py
index aecc5fc0502..761f954c6d6 100644
--- a/addons/website_hr_recruitment/controllers/main.py
+++ b/addons/website_hr_recruitment/controllers/main.py
@@ -1,14 +1,12 @@
# -*- coding: utf-8 -*-
-import base64
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
-from openerp import SUPERUSER_ID
-from openerp import http
-from openerp.tools.translate import _
-from openerp.http import request
+from odoo import http, _
+from odoo.addons.website.models.website import slug
+from odoo.http import request
-from openerp.addons.website.models.website import slug
-class website_hr_recruitment(http.Controller):
+class WebsiteHrRecruitment(http.Controller):
@http.route([
'/jobs',
'/jobs/country/<model("res.country"):country>',
diff --git a/addons/website_hr_recruitment/tests/test_website_hr_recruitment.py b/addons/website_hr_recruitment/tests/test_website_hr_recruitment.py
index 9cf70411ec3..a84aee1ebaa 100644
--- a/addons/website_hr_recruitment/tests/test_website_hr_recruitment.py
+++ b/addons/website_hr_recruitment/tests/test_website_hr_recruitment.py
@@ -1,8 +1,12 @@
-from openerp.api import Environment
-import openerp.tests
-@openerp.tests.common.at_install(False)
-@openerp.tests.common.post_install(True)
-class TestWebsiteHrRecruitmentForm(openerp.tests.HttpCase):
+# -*- coding: utf-8 -*-
+# Part of Odoo. See LICENSE file for full copyright and licensing details.
+
+from odoo.api import Environment
+import odoo.tests
+
+@odoo.tests.common.at_install(False)
+@odoo.tests.common.post_install(True)
+class TestWebsiteHrRecruitmentForm(odoo.tests.HttpCase):
def test_tour(self):
self.phantom_js("/", "odoo.__DEBUG__.services['web.Tour'].run('website_hr_recruitment_tour', 'test')", "odoo.__DEBUG__.services['web.Tour'].tours.website_hr_recruitment_tour")