summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorThibault Delavallée <tde@openerp.com>2015-04-24 15:03:01 +0200
committerThibault Delavallée <tde@openerp.com>2015-04-27 10:20:38 +0200
commitb7f04278bd5375d6dc21a3381df91c725bb2fd44 (patch)
tree82f5f32aae2e8698d74edfe4ea0090772b6b7fb7 /addons
parent1701e7764fbda42ff06d34976cc52ac6692a919a (diff)
[FIX] hr: post field on mail.compose.message has been removed, thus removing
it from the code. This avoids having some warnings about unexisting field.
Diffstat (limited to 'addons')
-rw-r--r--addons/hr_recruitment/hr_recruitment.py1
-rw-r--r--addons/website_hr_recruitment/controllers/main.py2
-rw-r--r--addons/website_hr_recruitment/views/templates.xml1
3 files changed, 1 insertions, 3 deletions
diff --git a/addons/hr_recruitment/hr_recruitment.py b/addons/hr_recruitment/hr_recruitment.py
index e7a1f47ae55..df73699028f 100644
--- a/addons/hr_recruitment/hr_recruitment.py
+++ b/addons/hr_recruitment/hr_recruitment.py
@@ -501,7 +501,6 @@ class hr_applicant(osv.Model):
'model': self._name,
'composition_mode': 'mass_mail',
'template_id': stage.template_id.id,
- 'post': True,
'notify': True,
}, context=compose_ctx)
values = self.pool['mail.compose.message'].onchange_template_id(
diff --git a/addons/website_hr_recruitment/controllers/main.py b/addons/website_hr_recruitment/controllers/main.py
index 1b346eaa14b..1db4eb2f02f 100644
--- a/addons/website_hr_recruitment/controllers/main.py
+++ b/addons/website_hr_recruitment/controllers/main.py
@@ -111,7 +111,7 @@ class website_hr_recruitment(http.Controller):
}
for f in ['email_from', 'partner_name', 'description']:
value[f] = post.get(f)
- for f in ['department_id', 'job_id', 'stage_id']:
+ for f in ['department_id', 'job_id']:
value[f] = int(post.get(f) or 0)
# Retro-compatibility for saas-3. "phone" field should be replace by "partner_phone" in the template in trunk.
value['partner_phone'] = post.pop('phone', False)
diff --git a/addons/website_hr_recruitment/views/templates.xml b/addons/website_hr_recruitment/views/templates.xml
index 2b19762e3a2..bc773a2dbeb 100644
--- a/addons/website_hr_recruitment/views/templates.xml
+++ b/addons/website_hr_recruitment/views/templates.xml
@@ -155,7 +155,6 @@
<form class="form-horizontal mt32" action="/jobs/thankyou" method="post" enctype="multipart/form-data">
<input type="hidden" t-att-value="job and job.department_id.id or False" name="department_id"/>
<input type="hidden" t-att-value="job and job.id or False" name="job_id"/>
- <input type="hidden" t-att-value="job and job.stage_ids and job.stage_ids[0].id or False" name="stage_id"/>
<div t-attf-class="form-group #{error.get('partner_name') and 'has-error' or ''}">
<label class="col-md-3 col-sm-4 control-label" for="partner_name">Your Name</label>
<div class="col-md-7 col-sm-8">