Skip to content

Commit

Permalink
[FIX] hr_skills: Display correctly certification/course lines
Browse files Browse the repository at this point in the history
Purpose
=======

Since odoo@ee8106b
the resume lines generated from the eLearning/Certfication courses are
not rendered properly.

closes odoo#42478

Taskid: 2149477
Signed-off-by: Yannick Tivisse (yti) <[email protected]>
  • Loading branch information
tivisse committed Dec 30, 2019
1 parent 9112353 commit 85a4e3c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion addons/hr_skills/static/src/xml/resume_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<templates id="template" xml:space="preserve">

<t t-name="hr_resume_data_row">
<tr t-attf-class="o_data_row #{is_last? 'o_data_row_last' : ''}" t-att-data-id="id">
<tr class="o_data_row" t-attf-class="o_data_row #{is_last? 'o_data_row_last' : ''}" t-att-data-id="id">
<t t-if="data.display_type === 'classic'">
<td class="o_resume_timeline_cell position-relative pr-lg-2">
<div class="rounded-circle bg-info position-relative"/>
Expand Down
2 changes: 1 addition & 1 deletion addons/hr_skills/views/hr_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<group>
<group>
<field name="line_type_id"/>
<field name="display_type" invisible="1"/>
<field name="display_type" required="1"/>
</group>
<group>
<field name="date_start" required="True"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<t t-extend="hr_resume_data_row">
<t t-jquery="tr.o_data_row" t-operation="append">
<t t-if="data.display_type === 'course'">
<td class="o_data_cell container">
<td class="o_data_cell container" colspan="2">
<div class="o_resume_line row" t-att-data-id="id">
<div class="o_resume_line_dates col-lg-3">
<span><t t-esc="data.date_start"/></span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<t t-extend="hr_resume_data_row">
<t t-jquery="tr.o_data_row" t-operation="append">
<t t-if="data.display_type === 'certification'">
<td class="o_data_cell container">
<td class="o_data_cell container" colspan="2">
<div class="o_resume_line row" t-att-data-id="id">
<div class="o_resume_line_dates col-lg-3">
<span><t t-esc="data.date_start"/></span>
Expand Down

0 comments on commit 85a4e3c

Please sign in to comment.