mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] rma_sale: use _get_placeholder_filename() rather than a hardcoded url
Linked to H14601 ToDo
This commit is contained in:
@@ -77,8 +77,9 @@
|
||||
<t t-set="validity" t-value="rma_template._rma_sale_line_validity(line)"/>
|
||||
<div class="row" t-attf-class="row #{'' if validity == 'valid' else 'text-muted'}">
|
||||
<div class="col-lg-1 text-center">
|
||||
<img class="mr4 float-left o_portal_product_img" t-if="line.product_id.image_128" t-att-src="image_data_uri(line.product_id.image_128)" alt="Product Image" width="64"/>
|
||||
<img class="mr4 float-left o_portal_product_img" t-if="not line.product_id.image_128" src="/web/static/src/img/placeholder.png" alt="Product Image" width="64"/>
|
||||
<img class="mr4 float-left o_portal_product_img"
|
||||
t-att-src="image_data_uri(product.image_128) if product.image_128 else '/' + product._get_placeholder_filename('image_128')"
|
||||
alt="Product Image" width="64"/>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<span t-esc="line.product_id.name"/>
|
||||
|
||||
Reference in New Issue
Block a user