[FIX] hr_timesheet: fix the border color in kanban view remaining hour field

In the Kanban view of the project module, the remaining hour's widget should
have the frame colored orange, while the rest of the widget should have no color

task-

closes odoo/odoo#125526

Signed-off-by: Xavier Bol (xbo) <xbo@odoo.com>
This commit is contained in:
Gurupreet Singh
2023-08-24 18:36:44 +02:00
parent a844f37aac
commit 60009bccc9
@@ -197,8 +197,8 @@
<div class="oe_kanban_bottom_left" position="inside">
<t name="allocated_hours" t-if="record.allocated_hours.raw_value &gt; 0 and record.allow_timesheets.raw_value">
<t t-set="badge" t-value=""/>
<t t-set="badge" t-value="'bg-warning'" t-if="record.progress.raw_value &gt;= 80 and record.progress.raw_value &lt;= 100"/>
<t t-set="badge" t-value="'bg-danger'" t-if="record.remaining_hours.raw_value &lt; 0"/>
<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 }} me-0" t-att-title="title">