From 44def2086b8280d41252b9807e4e5a760a40c008 Mon Sep 17 00:00:00 2001
From: qsm-odoo <qsm@odoo.com>
Date: Wed, 4 Oct 2017 10:28:25 +0200
Subject: [PATCH] [FIX] web: allow kanban tags without color field

---
 addons/web/static/src/less/kanban_view.less | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/addons/web/static/src/less/kanban_view.less b/addons/web/static/src/less/kanban_view.less
index 6f0019295216..d95a518fdda0 100644
--- a/addons/web/static/src/less/kanban_view.less
+++ b/addons/web/static/src/less/kanban_view.less
@@ -24,8 +24,9 @@
     cursor: pointer;
     .o-hover-opacity(@base-opacity);
 }
-.o-kanban-tag-color(@size: 1) when (@size < @odoo-nb-ui-color) {
-    // Note: the 0 color is not defined as it is the 'no color' for kanban
+.o-kanban-tag-color(@size: 0) when (@size < @odoo-nb-ui-color) {
+    // Note: the 0 color is supposed to be invisible if there is a color field
+    // but it is used as a default color when there is no color field
     &.o_tag_color_@{size} span {
         background-color: ~"@{odoo-color-@{size}}";
     }
-- 
GitLab