Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
9620 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ค. 22
34200
0
มี.ค. 19
4199
0
ม.ค. 19
5271
4
ก.พ. 24
12535
0
ม.ค. 18
4064