This question has been flagged
2 Replies
2446 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