[IMP] product: update the image placeholder

Prior to this commit, the image placeholder lacked contrast and wasn't
readable in small size (eg. in the kanban view).

This commit improves this placeholder.

task-2760590

closes odoo/odoo#105296

Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
Brieuc-brd
2022-11-21 14:56:55 +01:00
parent 265c2777b4
commit 0625434364
3 changed files with 1 additions and 1 deletions
+1 -1
View File
@@ -1264,7 +1264,7 @@ class ProductTemplate(models.Model):
def _get_placeholder_filename(self, field):
image_fields = ['image_%s' % size for size in [1920, 1024, 512, 256, 128]]
if field in image_fields:
return 'product/static/img/placeholder.png'
return 'product/static/img/placeholder_thumbnail.png'
return super()._get_placeholder_filename(field)
def get_single_product_variant(self):
Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 28 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB