Skip to Content
Menu
This question has been flagged
2 Replies
2539 Views

please i want to know how to add automatically an Id or NO° for each product  in the invoice report. thanks .i already made some customization on the report_invoice_documentif but really i dont know how to generate an ID automatically  exemple :

NO°     |      description 
1          |       paper
2          |       INk
3          |       keyboard 


Avatar
Discard
Best Answer

Hi Medmars,


Following this code for invoice report.

<tr t-foreach="o.invoice_lines t-as="line">
    <td><span t-esc="line_index + 1"/></td>
    <td><span t-field="line.name"/></td>
</tr>
Avatar
Discard
Author Best Answer

Thank you very much it's work by adding : <span t-esc="l_index + 1"/>
thanks (y)

Avatar
Discard
Related Posts Replies Views Activity
1
Sep 24
233
2
Aug 24
354
3
Jul 24
2385
1
Jul 24
361
2
Jun 24
452