Odoo Help

0

NO° for each item in the invoice

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


2
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>
</tr>
0
medmars
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.

Register

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)

Stats

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