diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-02-18 16:58:30 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-02-18 16:58:30 +0100 |
| commit | ed507e01f110aa1bb4b63a434340ec59adb93e1a (patch) | |
| tree | 44d25141cc5229f687fe7f214706539f5354cf3f | |
| parent | 6d1b2e1a7ea597b99ac9c5f065cb5a1429f6c71f (diff) | |
[FIX] website_sale: Display comments & suggested product toghether.
By shadowing the `product` variable, the suggested products option had
the side effect of showing the comments of the last suggested product
instead of the current product ones.
| -rw-r--r-- | addons/website_sale/views/templates.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/website_sale/views/templates.xml b/addons/website_sale/views/templates.xml index 6784fb9eeca..3dc01f720e8 100644 --- a/addons/website_sale/views/templates.xml +++ b/addons/website_sale/views/templates.xml @@ -541,13 +541,13 @@ <div class="container mt32" t-if="product.alternative_product_ids"> <h3>Suggested alternatives:</h3> <div class='row mt16' style=""> - <t t-foreach="product.alternative_product_ids" t-as="product"> + <t t-foreach="product.alternative_product_ids" t-as="alt_product"> <div class='col-md-2 thumbnail' style='width: 170px; height:130px; float:left; display:inline; margin-right: 10px; overflow:hidden;'> <div class='mt16 text-center' style="height: 100%;"> - <div t-field="product.image_small" t-field-options='{"widget": "image", "class": "img-rounded shadow o_alternative_product" }'/> + <div t-field="alt_product.image_small" t-field-options='{"widget": "image", "class": "img-rounded shadow o_alternative_product" }'/> <h5> - <a t-attf-href="/shop/product/#{ slug(product) }" style="display: block"> - <span t-att-title='product.name' t-field='product.name' style="display: block;"/> + <a t-attf-href="/shop/product/#{ slug(alt_product) }" style="display: block"> + <span t-att-title='alt_product.name' t-field='alt_product.name' style="display: block;"/> </a> </h5> </div> |
