odoo tricks

Tips and tricks for Odoo (OpenERP)

How to change the default header/footer in Odoo 8 PDF reports

You probably already know that you can customise the default Odoo header/footer by changing the Company settings. However when you create a PDF report such as a sale, quote or invoice you will find the header/footer remains unchanged.

The issue is that Quote/Sale orders do not use the Company-level report header/footer configuration.

To edit the header and footer for Quote/Sale orders you need to edit the QWeb view. Here is how to do this:

(1) Settings > Technical > User Interface > Views
(2) Search for “external”
(3) You will see report.external_layout, report.external_layout_header and report.external_layout_footer
(4) Edit these views as appropriate to modify the PDF version of the Quote/Sales orders

Maybe this is obvious to others, but I couldn’t find any documentation explaining how this works.

10 responses to “How to change the default header/footer in Odoo 8 PDF reports

  1. Bharvi Manvar March 3, 2017 at 11:32 am

    Hello, i need u advice on Odoo,

    I want to add images in footer So how to add insert images in Qweb. If image is not in server then how to add on server using google clound .

    Like

  2. Alirio García February 14, 2017 at 3:14 pm

    Thank you very much for this!

    Like

  3. mahmood September 16, 2015 at 9:47 am

    thanks a lot . i was looking for it

    Like

  4. izhar September 6, 2015 at 4:25 pm

    Hi,
    i need u advice on odoo system.

    when i print salary slip, is not came out with full page.

    any idea what was wrong with it?in early setup i have an error to print to pdf but manage to solve it (wkhtmltopdf)

    Like

  5. Kerabit Australia May 8, 2015 at 4:22 am

    The default header report in Odoo 8 doesn’t change with the way you mentioned in “Views” but from the Settings > Companies > Companies > “Company Name” > Report Configuration (tab) , then you make the changes into the HTML. All other cases for changing the content in the invoice etc, with the Qweb method from Settings > Reports > Reports Invoices
    Select “Search Associated QWeb Views
    Click on “report_invoice_document ( if its for the invoice or anything else for other reports)
    then , Modify the HTML layout and dont forget to save..

    Like

  6. Jan Kyselák February 7, 2015 at 1:32 pm

    Hi, I don’t find any of the “external” that you are mentioning…

    Like

  7. Koyking GodStep (@KoykingGodStep) January 29, 2015 at 4:31 am

    I would like to search product variant by it’s variant attributes, how can I do that in standard search. Is that possible?

    Like

  8. Sergio J. Peralta December 6, 2014 at 10:03 pm

    thanks it’s very helpfull !

    Like

  9. Ben Olsen November 19, 2014 at 5:57 pm

    Thank you for posting this! I couldn’t find this information anywhere else, and this is what I was looking for.

    Like

Leave a Comment