Skip to Content
Menu
This question has been flagged
9618 Rodiniai

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.

Portretas
Atmesti

@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

Related Posts Replies Rodiniai Veikla
2
geg. 22
34170
0
kov. 19
4196
0
saus. 19
5264
4
vas. 24
12524
0
saus. 18
4039