Community mailing list archives

community@mail.odoo.com

RE: Qweb printing template: is it possible to define a block that should not be printed over two pages

by
Bassirou Ndaw
- 03/28/2016 07:14:10

[Question regarding qweb, does anyone know if it is possible (and how) to define in qweb a block that should not be printed over two pages ?]

 

Yes, you can use the attribute page-break-inside . For exemple

<div t-attf-style="page-break-inside: avoid;">

       [...content of your block...]   

</div>

 

Best regards

Bass