[FIX] product: colored background in catalog

Before odoo/odoo#135502, the background of a record was colored if it
has some quantities or if it is read only, but this detail was lost.
This commit fixes that.

closes odoo/odoo#140255

Related: odoo/enterprise#49808
Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
svs-odoo
2023-11-07 11:21:53 +00:00
parent fb2e401359
commit 3bcfd6a4e5
2 changed files with 2 additions and 2 deletions
@@ -8,7 +8,7 @@
t-on-click="onGlobalClick"
t-ref="root">
<div class="d-flex flex-column h-100"
t-att-class="{'o_product_added': productCatalogData.quantity}">
t-att-class="{'o_product_added': productCatalogData.quantity || productCatalogData.readOnly}">
<t t-call="{{ templates[this.constructor.KANBAN_BOX_ATTRIBUTE] }}"
t-call-context="this.renderingContext"/>
<t t-component="orderLineComponent" productId="props.record.resId" t-props="productCatalogData"/>
@@ -10,7 +10,7 @@ div.o_product_catalog_quantity {
}
}
.o_product_kanban_view .o_kanban_renderer .o_kanban_record .o_product_added {
.o_kanban_view .o_kanban_renderer .o_kanban_record .o_product_added {
background-color: $o-component-active-bg;
border-color: $o-component-active-border;
}