summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérome Maes <jem@openerp.com>2016-04-14 15:45:27 +0200
committerJérome Maes <jem@openerp.com>2016-04-22 14:49:44 +0200
commit0fcbff389c6b8fec69a3908865e542b0f3e0fe72 (patch)
tree44a94d1d23f0310f8e3a36f210b8e33c2a45a4ed
parentd0459de3384874bbd3be79c278e7bbf21f243a0e (diff)
[FIX] hr_recruitment, website_hr_recruitment : compatibility method
Duringthe migration, backward v7 compatibility were removed, but there were still used in inherited modules. This commit fix this problem by using the new method names.
-rw-r--r--addons/hr_recruitment/views/hr_job_views.xml4
-rw-r--r--addons/website_hr_recruitment/models/hr_job.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/addons/hr_recruitment/views/hr_job_views.xml b/addons/hr_recruitment/views/hr_job_views.xml
index d0b45712573..68f2fb53cbb 100644
--- a/addons/hr_recruitment/views/hr_job_views.xml
+++ b/addons/hr_recruitment/views/hr_job_views.xml
@@ -67,7 +67,7 @@
<div class="row">
<div class="col-xs-12">
- <a t-if="record.state.raw_value == 'recruit'" name="job_open" type="object">Recruitment Done</a>
+ <a t-if="record.state.raw_value == 'recruit'" name="set_open" type="object">Recruitment Done</a>
</div>
</div>
</div>
@@ -81,7 +81,7 @@
<t t-if="record.state.raw_value == 'open'">
<div class="row">
<div class="col-xs-12 o_kanban_primary_left">
- <button class="btn btn-primary" name="job_recruitment" type="object">Start Recruitment</button>
+ <button class="btn btn-primary" name="set_recruit" type="object">Start Recruitment</button>
</div>
</div>
</t>
diff --git a/addons/website_hr_recruitment/models/hr_job.py b/addons/website_hr_recruitment/models/hr_job.py
index c73a2f352fb..19ddb8e6881 100644
--- a/addons/website_hr_recruitment/models/hr_job.py
+++ b/addons/website_hr_recruitment/models/hr_job.py
@@ -13,9 +13,9 @@ class hr_job(osv.osv):
res[job.id] = "/jobs/detail/%s" % job.id
return res
- def job_open(self, cr, uid, ids, context=None):
+ def set_open(self, cr, uid, ids, context=None):
self.write(cr, uid, ids, {'website_published': False}, context=context)
- return super(hr_job, self).job_open(cr, uid, ids, context)
+ return super(hr_job, self).set_open(cr, uid, ids, context)
_columns = {
'website_description': fields.html('Website description', translate=True),