Skip to content
Snippets Groups Projects
Commit b73f3dd2 authored by kais-odoo's avatar kais-odoo
Browse files

[FIX] hr_timesheet: fix the missing borders around the remaining hours widget

Before this commit, missing borders of remaining hours in project sharing
kanban view.

So in this commit, added border and respected color boder classes  like
'border-success','border-warning' and 'border-danger' on remaining hours.

task-3014420

Part-of: odoo/odoo#104601
parent 396684f7
Branches
Tags
No related merge requests found
......@@ -127,9 +127,9 @@
</templates>
<div class="oe_kanban_bottom_left" position="inside">
<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="'text-bg-warning'" t-if="record.progress.raw_value &gt;= 80 and record.progress.raw_value &lt;= 100"/>
<t t-set="badge" t-value="'text-bg-danger'" t-if="record.remaining_hours.raw_value &lt; 0"/>
<t t-set="badge" t-value="'border border-success'"/>
<t t-set="badge" t-value="'border border-warning'" t-if="record.progress.raw_value &gt;= 80 and record.progress.raw_value &lt;= 100"/>
<t t-set="badge" t-value="'border border-danger'" t-if="record.remaining_hours.raw_value &lt; 0"/>
<t t-set="title" t-value="'Remaining days'" t-if="record.encode_uom_in_days.raw_value"/>
<t t-set="title" t-value="'Remaining hours'" t-else=""/>
<div t-attf-class="oe_kanban_align badge {{ badge }}" t-att-title="title">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment