Skip to content
Snippets Groups Projects
Commit 0ab333c6 authored by Yannick Tivisse's avatar Yannick Tivisse Committed by Lucas Lefèvre
Browse files

[FIX] hr_skills: Don't set 'false' line in no value to set


closes odoo/odoo#31334

Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent f6d2d0fd
No related branches found
No related tags found
No related merge requests found
......@@ -18,9 +18,9 @@ class Employee(models.Model):
line_type = self.env.ref('hr_skills.resume_type_experience', raise_if_not_found=False)
resume_lines_values.append({
'employee_id': employee.id,
'name': employee.company_id.name,
'name': employee.company_id.name or '',
'date_start': employee.create_date.date(),
'description': employee.job_title,
'description': employee.job_title or '',
'line_type_id': line_type and line_type.id,
})
self.env['hr.resume.line'].create(resume_lines_values)
......
......@@ -17,7 +17,7 @@
</div>
<div class="o_resume_line_desc col-lg-9">
<h3><t t-esc="data.name"/></h3>
<t t-esc="data.description"/>
<t t-if="data.description" t-esc="data.description"/>
</div>
</div>
</td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment