[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:
@@ -197,8 +197,8 @@
|
||||
<div class="oe_kanban_bottom_left" position="inside">
|
||||
<t name="allocated_hours" t-if="record.allocated_hours.raw_value > 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 >= 80 and record.progress.raw_value <= 100"/>
|
||||
<t t-set="badge" t-value="'bg-danger'" t-if="record.remaining_hours.raw_value < 0"/>
|
||||
<t t-set="badge" t-value="'border border-warning'" t-if="record.progress.raw_value >= 80 and record.progress.raw_value <= 100"/>
|
||||
<t t-set="badge" t-value="'border border-danger'" t-if="record.remaining_hours.raw_value < 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">
|
||||
|
||||
Reference in New Issue
Block a user