Hello. I have foud this example on the forum:
<t t-set="i" t-value="1"/>
<tr t-foreach="o.order_line" t-as="l">
<td> <span t-esc="i"/> </td>
<t t-set="i" t-value="i+1"/>
Any value to a variable set inside the loop, exsists only as loong as the loop exsists. If you try: <span t-esc="i"/> after the loop, you will see that the value is again 1. You cannot set the value of variable declaired outside the loop. Where should this bug be reported?