Odoo Help


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


How to fix overlapping header printout

Emad Jaddou
on 3/10/15, 2:54 PM 2,659 views


When we try to print invoice with multiple pages the rest of the pages will have the table header and the first row from that page being printed on top of each other. 

we are using Odoo V8 and I tried edit the report_invoice_layouted and the property of the paper used but nothing seems to fix the header.

<?xml version="1.0"?>
<data inherit_id="account.report_invoice_document">
    <xpath expr="//table/tbody[@class='invoice_tbody']" position="replace">
        <t t-foreach="o.sale_layout_lines(invoice_id=o.id)" t-as="p">
            <!-- Name of the category -->
            <t t-call="sale_layout.category_template"/>

            <!-- Lines associated -->
            <t t-foreach="p['lines']" t-as="l">
                    <td><span t-field="l.name"/></td>
                    <td><span t-field="l.quantity"/></td>
                    <td class="text-right">
                        <span t-field="l.price_unit"/>
                    <td class="text-right">
                        <span t-field="l.price_subtotal" t-field-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: &quot;o.currency_id&quot;}"/>

            <!-- Subtotal -->
            <t t-call="sale_layout.subtotal_template"/>

            <!-- Separator -->
            <t t-call="sale_layout.separator_template"/>

            <!-- Pagebreak -->
            <t t-if="'pagebreak' in p['category'] and p['category'].pagebreak is True">
                <t t-if="p_index &lt; p_size - 1">
                            <p style="page-break-before:always;"> </p>
                            <table class="table table-condensed">
                            <th groups="product.group_uom">Unit of measure</th>
                            <th class="text-right">Unit Price</th>
                            <th class="text-right">Amount</th>

Emad Jaddou
On 3/10/15, 3:29 PM

Answering my own Question.

The issue is because of wkhtmltopdf.exe. you must use version 


more details www.odoo.com/forum/help-1/question/invoice-layout-issues-74445

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)


Asked: 3/10/15, 2:54 PM
Seen: 2659 times
Last updated: 3/16/15, 8:10 AM