[FIX] website_hr_recruitment: allow fields in job to be auto-populated

When submitting an Application Form, the name / email / phone number are
not auto-populated.

Step to reproduce:
1. Install "Online Jobs" module
2. Go to /jobs on your website and apply to a job
The form should be auto-populated with the field mentionned before, it isn't.

Solution: From a previous commit [1], the fill-with behavior will replace
the default_values. However, the change was not completed. The
data-fill-with attribute was missing into the XML template.

[1]: https://github.com/odoo/enterprise/commit/fe5a2ffe30b6f5b5d1bd2e64a0e7f11267b34a96

opw-2803166

closes odoo/odoo#89941

X-original-commit: 5739569b2c2a76e3c091c23a12623e8921794834
Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Signed-off-by: Desausoi Laurent (lade) <lade@odoo.com>
This commit is contained in:
Laurent Desausoi (lade)
2022-04-28 09:59:53 +02:00
parent 0569476adc
commit f61f509f7d
@@ -147,7 +147,7 @@
<span class="s_website_form_mark"> *</span>
</label>
<div class="col-sm">
<input id="recruitment1" type="text" class="form-control s_website_form_input" name="partner_name" required=""/>
<input id="recruitment1" type="text" class="form-control s_website_form_input" name="partner_name" required="" data-fill-with="name"/>
</div>
</div>
</div>
@@ -158,7 +158,7 @@
<span class="s_website_form_mark"> *</span>
</label>
<div class="col-sm">
<input id="recruitment2" type="email" class="form-control s_website_form_input" name="email_from" required=""/>
<input id="recruitment2" type="email" class="form-control s_website_form_input" name="email_from" required="" data-fill-with="email"/>
</div>
</div>
</div>
@@ -169,7 +169,7 @@
<span class="s_website_form_mark"> *</span>
</label>
<div class="col-sm">
<input id="recruitment3" type="tel" class="form-control s_website_form_input" name="partner_phone" required=""/>
<input id="recruitment3" type="tel" class="form-control s_website_form_input" name="partner_phone" required="" data-fill-with="phone"/>
</div>
</div>
</div>