[FIX] rma: fix field path in template

This commit is contained in:
Milan
2025-01-02 19:54:19 +01:00
parent 87d8337ba6
commit 2f9f50e3a3
2 changed files with 2 additions and 0 deletions

View File

@@ -154,6 +154,7 @@
</div> </div>
<t t-foreach="rma.lines" t-as="line"> <t t-foreach="rma.lines" t-as="line">
<div class="row purchases_vertical_align"> <div class="row purchases_vertical_align">
<t t-set="product" t-value="line.product_id"/>
<div class="col-lg-3 text-center"> <div class="col-lg-3 text-center">
<img class="mr4 float-left o_portal_product_img" <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')" t-att-src="image_data_uri(product.image_128) if product.image_128 else '/' + product._get_placeholder_filename('image_128')"

View File

@@ -75,6 +75,7 @@
</div> </div>
<t t-foreach="rma_sale_order.order_line" t-as="line"> <t t-foreach="rma_sale_order.order_line" t-as="line">
<t t-set="validity" t-value="rma_template._rma_sale_line_validity(line)"/> <t t-set="validity" t-value="rma_template._rma_sale_line_validity(line)"/>
<t t-set="product" t-value="line.product_id"/>
<div class="row" t-attf-class="row #{'' if validity == 'valid' else 'text-muted'}"> <div class="row" t-attf-class="row #{'' if validity == 'valid' else 'text-muted'}">
<div class="col-lg-1 text-center"> <div class="col-lg-1 text-center">
<img class="mr4 float-left o_portal_product_img" <img class="mr4 float-left o_portal_product_img"