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.
Great!
LikeLike
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 .
LikeLike
Thank you very much for this!
LikeLike
thanks a lot . i was looking for it
LikeLike
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)
LikeLike
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..
LikeLike
Hi, I don’t find any of the “external” that you are mentioning…
LikeLike
I would like to search product variant by it’s variant attributes, how can I do that in standard search. Is that possible?
LikeLike
thanks it’s very helpfull !
LikeLike
Thank you for posting this! I couldn’t find this information anywhere else, and this is what I was looking for.
LikeLike