Every QWeb report needs to have div with class “page”

The PDF body for every QWeb report that you create needs to be inside a div with a class “page”. That means if you don’t have such class in your report its body will be a blank page.

For Example, the following report will show the text “Sales Order” and its name.

<div class="page">
    <h2>Sales Order <span t-field="o.name"/></h2>
</div>
Share the knowledge!

Leave a Reply

Your email address will not be published. Required fields are marked *