[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:
@@ -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 > 0 and record.allow_timesheets.raw_value">
|
||||
<t name="planned_hours" t-if="record.planned_hours.raw_value > 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 >= 80 and record.progress.raw_value <= 100"/>
|
||||
<t t-set="badge" t-value="'badge-danger'" t-if="record.remaining_hours.raw_value < 0"/>
|
||||
|
||||
Reference in New Issue
Block a user