[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:
@@ -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 |
Reference in New Issue
Block a user