Odoo Help


NO° for each item in the invoice

on 3/30/16, 5:04 AM 489 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 

Jaydeep Barot (jar)
On 3/30/16, 5:43 AM

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>
On 3/30/16, 6:21 AM

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 3/30/16, 5:04 AM
Seen: 489 times
Last updated: 3/30/16, 6:22 AM