From 3bcfd6a4e55f44f689efd498cf00185ade89d3fc Mon Sep 17 00:00:00 2001 From: svs-odoo Date: Mon, 30 Oct 2023 09:41:38 +0100 Subject: [PATCH] [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) --- addons/product/static/src/product_catalog/kanban_record.xml | 2 +- .../static/src/product_catalog/order_line/order_line.scss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/product/static/src/product_catalog/kanban_record.xml b/addons/product/static/src/product_catalog/kanban_record.xml index 219ae519618..83e43d941b0 100644 --- a/addons/product/static/src/product_catalog/kanban_record.xml +++ b/addons/product/static/src/product_catalog/kanban_record.xml @@ -8,7 +8,7 @@ t-on-click="onGlobalClick" t-ref="root">
+ t-att-class="{'o_product_added': productCatalogData.quantity || productCatalogData.readOnly}"> diff --git a/addons/product/static/src/product_catalog/order_line/order_line.scss b/addons/product/static/src/product_catalog/order_line/order_line.scss index 757ef519de9..5e7aedf3d19 100644 --- a/addons/product/static/src/product_catalog/order_line/order_line.scss +++ b/addons/product/static/src/product_catalog/order_line/order_line.scss @@ -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; }