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

how can i add a row number on a list of products (quotation order) openerp 7

By
juan
on 2/10/15, 6:01 AM 1,140 views

Hi, i am pretty new at openerp 7, so i feel really lost, i just want to add a field wich indicates the line number from a list of products, at the moment i dont care if it isnt in the system, i just need to show it on the pdf (even manually before printing), i already customized my report using the openoffice plugin, so that's all i know.

something like this:

item | code | product

1

2

3

and again, i am just asking for the simplest way to do it, i tried adding a new field and edit it (typing the numbers) before printing but ended with 2 descriptions fields with the same content

thanks for reading my bad engish question.

@juan,

You should be able to do this with a t-for-each loop using t-as. I'm not so familiar with version 7.0, however in version 8.0 you should just be able to add some very simple python logic for the loop that adds +1 to a variable and then prints that variable each time it runs through the loop.

I think this could probably be answered better by someone with more experience with Odoo and version 7 in particular, however doing this in python is quite simple.

Alternatively you may want to refer to some of the following links:
https://www.odoo.com/forum/help-1/question/display-line-number-in-reportlab-31045
https://www.odoo.com/forum/help-1/question/sales-order-line-numbering-67276
https://www.odoo.com/forum/help-1/question/how-can-i-add-an-increasing-line-number-in-the-first-column-of-my-invoice-line-59475 https://www.odoo.com/forum/help-1/question/solved-how-to-add-record-number-in-reports-53926
https://answers.launchpad.net/openobject-client-web/+question/110046

Luke Branch
on 2/10/15, 6:19 AM

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: 2/10/15, 6:01 AM
Seen: 1140 times
Last updated: 3/16/15, 8:10 AM