Hello Community,Please help. I hava a problem when I create pdf report in qweb.....
I try this in myCustomize Modul and Report
<t t-set="i" t-value="1" />
<t t-foreach="request.env['x_surat_usul'].search([])" t-as="obj">
<tr t-foreach="obj.x_pengajuan_materiil" t-as="a">
<td class="text-center"><span t-esc="i"/><t t-set="i" t-value="i+1"/> </td>
<td><span t-field="a.x_komponen" /></td>
<td><span t-field="a.x_jum_ang_approve" /></td>
</tr>
</t>
Then show
No Category Amount
1 Fasilitas 3
2 Fasilitas 2
3 Rumdin 2
And I want showing
No Category Amount
1 Fasilitas 5
2 Rumdin 2
Thanks ...
http://learnopenerp.blogspot.com/2016/09/how-to-create-custom-reports-in-odoo.html