Odoo Help

Welcome!

This community 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.

0

NO° for each item in the invoice

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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