diff --git a/addons/product/static/src/product_catalog/kanban_record.xml b/addons/product/static/src/product_catalog/kanban_record.xml index 83e43d941b0..219ae519618 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}"> diff --git a/addons/product/static/src/product_catalog/order_line/order_line.js b/addons/product/static/src/product_catalog/order_line/order_line.js index d1363221a0d..78a7de40de8 100644 --- a/addons/product/static/src/product_catalog/order_line/order_line.js +++ b/addons/product/static/src/product_catalog/order_line/order_line.js @@ -9,7 +9,8 @@ export class ProductCatalogOrderLine extends Component { quantity: Number, price: Number, readOnly: { type: Boolean, optional: true }, - } + warning: { type: String, optional: true}, + }; //-------------------------------------------------------------------------- // Private diff --git a/addons/product/static/src/product_catalog/order_line/order_line.xml b/addons/product/static/src/product_catalog/order_line/order_line.xml index ead4e0ebc8c..9571e50b90b 100644 --- a/addons/product/static/src/product_catalog/order_line/order_line.xml +++ b/addons/product/static/src/product_catalog/order_line/order_line.xml @@ -6,10 +6,19 @@ Unit price: - +
+ + +
+ You can't edit this product in the catalog. -
+
-
+ + + + +