Skip to Content
Menu
This question has been flagged
1 Reply
3149 Views

Hello,


I want to add a float field to enter how many timesprint the order in the same page of report. 

For example:

if in the field I enter 10. Then, it will repeat the same order line 10 times in the report.


https://docs.google.com/document/d/1dkHR9H7hS4oHoUP0vK9UNbofZOlnibU1XSV8aklPiVU/edit

Avatar
Discard

Hello, asma@alhadargroup.com

First of all you have shared one link for details but due to security access we are not able to access it. also that field you told is it in the main form or in the order line ? please share more details so we can help you out.

Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Author

Fot]r the field its in the main form.

The link I drew the report *if we wrote 10 in the field.

Report

Order1
Order1
Order1
Order1
Order1
Order1
Order1
Order1
Order1
Order1

Author

I will send the link to your email as I couldn't make it public.

Best Answer

Hello, you can use foe loop with your field range and under your loop you can add your order line by this way you can get above mentioned result.

for example :

for in in range(your_field):

Note : This is python example you can make it is with q-web compatible.


Thanks & Regards,
Email: odoo@aktivsoftware.com
Skype: kalpeshmaheshwari

Avatar
Discard
Related Posts Replies Views Activity
0
Jan 22
2429
2
Dec 24
990
0
Mar 15
3398
0
May 24
822
0
Jun 21
2355