summaryrefslogtreecommitdiff
path: root/addons/repair/views
diff options
context:
space:
mode:
authorVandan Shah <vas@odoo.com>2018-08-22 09:56:57 +0000
committerYannick Tivisse <yti@odoo.com>2019-02-19 11:01:40 +0000
commit7a80ebe35edba3d76ca7167a2ef13e26b1cac9d4 (patch)
tree8959f479ddbc54e05110cfb7c9c8cc870ace2eaa /addons/repair/views
parentd09ecc8b182f93a1fd6cd5a67b327a1ab3bc4f99 (diff)
[IMP] *: Add progress bar on kanban views based on activities
Purpose ======= If the activities are available on a model (i.e. inherits mail.activity.mixin), add a progress bar based on the activities if nothing is defined yet. closes odoo/odoo#24777
Diffstat (limited to 'addons/repair/views')
-rw-r--r--addons/repair/views/repair_views.xml2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/repair/views/repair_views.xml b/addons/repair/views/repair_views.xml
index 937301a7176..787b43e7146 100644
--- a/addons/repair/views/repair_views.xml
+++ b/addons/repair/views/repair_views.xml
@@ -198,6 +198,8 @@
<field name="address_id"/>
<field name="guarantee_limit"/>
<field name="state"/>
+ <field name="activity_state"/>
+ <progressbar field="activity_state" colors='{"planned": "success", "today": "warning", "overdue": "danger"}'/>
<templates>
<t t-name="kanban-box">
<div t-attf-class="oe_kanban_card oe_kanban_global_click">