Hello,
I'm trying to display records using QWeb. I have a simple structure : Client(id, name)
I want to have a view displaying
id - name
0 - smith
1 - john
2 - jack
3 - bob
So I have made a QWeb code :
<templates>
<t t-name="MyView">
<table>
<thead>
<tr>
<th t-foreach="fields_view" t-as="field">
<t t-esc="fields[field.attrs.name].string" />
</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</t>
</templates>
This code should just show the header line, but it doesn't. I get an error : "No enumerator given to foreach"
How to make the simple view I want to make with QWeb ? I'm using OE6.1
Thank You
I have the same error. Since there is many people asking this question I suspect a bug, here is the bug report : https://bugs.launchpad.net/openobject-addons/+bug/1301474