summaryrefslogtreecommitdiff
path: root/addons/hr_timesheet
diff options
context:
space:
mode:
authorBarad Mahendra <mba@openerp.com>2020-05-19 07:10:08 +0000
committerBarad Mahendra <mba@openerp.com>2020-05-27 12:32:54 +0000
commit7e8dee1ecc073d4a9012cfec1b7ba5cb5e69d1e2 (patch)
tree3b586db4ed556926d6e16f46f6730531dc73dfc2 /addons/hr_timesheet
parent6ed99c032a1581d00ee0221c1536cd4b2f86a3a2 (diff)
[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>
Diffstat (limited to 'addons/hr_timesheet')
-rw-r--r--addons/hr_timesheet/views/project_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_timesheet/views/project_views.xml b/addons/hr_timesheet/views/project_views.xml
index e5ce420d2db..c10af5b9cc3 100644
--- a/addons/hr_timesheet/views/project_views.xml
+++ b/addons/hr_timesheet/views/project_views.xml
@@ -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"/>