Odoo Help

4

0
4 Answers
4
Avatar

Dipak Shah India

--Dipak Shah--

5424
| 6 3 9
Vadodara, Gujarat, India
--Dipak Shah--


Dipak Shah India
4/16/19, 2:11 AM
Hello @Sugeesh Ps,

Technically what you can do :
1) use counter variable , first of all set is as 0 (e.g <t t-set="count" t-value="0" />)
     > Then do +1 in it in your order iine for loop. (e.g <t t-set="count" t-value="count + 1" />)


2) Secondly check before printing each line whether counter > 10 or not. if counter > 10 then do page break here itself in t-if condition.


 > For page break use code like :- (<p style="page-break-after:always"></p>)
 > For Checking if condition use :- <t t-if="count > 10"> your page break code </t>

Hope this will help you !

 

1 Comment
Sugeesh Ps India
4/16/19, 5:25 AM

@Dipak Shah,

Thank you so much for your answer. I have tried this several times and what i obtained is that the page break is appearing only before the order line table insted of appearing after 10 lines.

2
Avatar

Sugeesh Ps India

--Sugeesh Ps--

9050
| 6 3 9
Thiruvananthapuram, India
--Sugeesh Ps--

Python Developer with a demonstrated history of working in the information technology and services industry. Skilled in Odoo functional and technical development using Python, Xml and Javascript.

Feel free to contact :
E-mail : sugeeshlohabanps@gmail.com
Phone : 9746215261
linkedin : https://www.linkedin.com/in/sugeesh-ps-25b2a0167/

Sugeesh Ps India
4/16/19, 7:37 AM
Ask a Question
Writer
Tag
Keep Informed
1 follower(s)
About This Community

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

Register
Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now