diff --git a/addons/point_of_sale/models/pos_session.py b/addons/point_of_sale/models/pos_session.py index d15180bcd2a..c51ba5e2d85 100644 --- a/addons/point_of_sale/models/pos_session.py +++ b/addons/point_of_sale/models/pos_session.py @@ -1925,7 +1925,7 @@ class PosSession(models.Model): 'fields': [ 'display_name', 'lst_price', 'standard_price', 'categ_id', 'pos_categ_id', 'taxes_id', 'barcode', 'default_code', 'to_weight', 'uom_id', 'description_sale', 'description', 'product_tmpl_id', 'tracking', - 'write_date', 'available_in_pos', 'attribute_line_ids', 'active' + 'write_date', 'available_in_pos', 'attribute_line_ids', 'active', 'image_128' ], 'order': 'sequence,default_code,name', }, @@ -1945,6 +1945,7 @@ class PosSession(models.Model): product_category_by_id = {category['id']: category for category in categories} for product in products: product['categ'] = product_category_by_id[product['categ_id'][0]] + product['image_128'] = bool(product['image_128']) def _get_pos_ui_product_product(self, params): self = self.with_context(**params['context']) diff --git a/addons/point_of_sale/static/src/scss/pos.scss b/addons/point_of_sale/static/src/scss/pos.scss index 859dcdd6186..af0f883ea54 100644 --- a/addons/point_of_sale/static/src/scss/pos.scss +++ b/addons/point_of_sale/static/src/scss/pos.scss @@ -1145,6 +1145,10 @@ td { padding: 0 map-get($spacers, 2) map-get($spacers, 2); } +.pos .product .product-name.no-image { + -webkit-line-clamp: 9; +} + .pos .product .product-info-button { position: absolute; top: 2px; diff --git a/addons/point_of_sale/static/src/xml/Screens/ProductScreen/ProductItem.xml b/addons/point_of_sale/static/src/xml/Screens/ProductScreen/ProductItem.xml index 11536910ae9..5c7a5456e3f 100644 --- a/addons/point_of_sale/static/src/xml/Screens/ProductScreen/ProductItem.xml +++ b/addons/point_of_sale/static/src/xml/Screens/ProductScreen/ProductItem.xml @@ -6,17 +6,19 @@ t-on-click="() => this.pos.addProductToCurrentOrder(props.product)" t-att-data-product-id="props.product.id" t-attf-aria-labelledby="article_product_{{props.product.id}}"> -