[IMP] hr_timesheet: add name on task kanban to inherit easily.

Purpose of the commit is to add the name on condition so it will
be inherited easily from the fsm view and  able to change the condition
easily by inehritance.

closes odoo/odoo#51979

Taskid: 2253536
Related: https://github.com/odoo/enterprise/pull/10796
Related: odoo/enterprise#10796
Closes: #51979
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Barad Mahendra
2020-05-27 12:32:54 +00:00
parent 6ed99c032a
commit 7e8dee1ecc
+1 -1
View File
@@ -221,7 +221,7 @@
<field name="allow_timesheets"/>
</templates>
<div class="oe_kanban_bottom_left" position="inside">
<t t-if="record.planned_hours.raw_value &gt; 0 and record.allow_timesheets.raw_value">
<t name="planned_hours" t-if="record.planned_hours.raw_value &gt; 0 and record.allow_timesheets.raw_value">
<t t-set="badge" t-value=""/>
<t t-set="badge" t-value="'badge-warning'" t-if="record.progress.raw_value &gt;= 80 and record.progress.raw_value &lt;= 100"/>
<t t-set="badge" t-value="'badge-danger'" t-if="record.remaining_hours.raw_value &lt; 0"/>