[FIX] website_sale: fix the product attribute templates to display the comma

This commit is contained in:
Christophe Matthieu 2014-05-27 18:07:26 +02:00
parent d24aede8d7
commit e987cd6c75
1 changed files with 2 additions and 5 deletions

View File

@ -531,14 +531,11 @@
<xpath expr="//p[@t-field='product.description_sale']" position="after">
<hr t-if="product.variant_ids"/>
<p class="text-muted">
<t t-set="inc" t-value="0"/>
<t t-foreach="product.variant_ids" t-as="variant_id">
<t t-set="inc" t-value="0"/>
<span t-field="variant_id.attribute_id"/>:
<t t-foreach="variant_id.value_ids" t-as="value_id">
<t t-if="inc">,</t> <span t-field="value_id.name"/>
</t>
<t t-foreach="variant_id.value_ids" t-as="value_id"><t t-if="inc">,</t> <span t-field="value_id.name"/><t t-set="inc" t-value="inc+1"/></t>
<br/>
<t t-set="inc" t-value="inc+1"/>
</t>
</p>
</xpath>