[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.
This commit is contained in:
Thibault Delavallée
2015-04-27 10:20:38 +02:00
parent 1701e7764f
commit b7f04278bd
3 changed files with 1 additions and 3 deletions
-1
View File
@@ -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(
@@ -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)
@@ -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">