I've modified the header and footer in Settings -> Companies -> My Company -> Report Configuration
When I click Preview Header/Footer the PDF file shows my expected modifications.
However when I create a quote or sale report it still has the old (Odoo default) header and footer.
I've check the sale reports templates but as far as I can tell they should be inheriting the header and footer from the company configuration. There are no errors in the Odoo logfile.
What am I doing wrong? Why aren't my custom header/footer template changes applying to the quote/sale PDF reports?
Ok, solved my own problem. 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:
- Settings > Technical > User Interface > Views
- Search for "external"
- You will see report.external_layout, report.external_layout_header and report.external_layout_footer
- 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.
About This Community
|Asked: 10/4/14, 12:47 PM|
|Seen: 2410 times|
|Last updated: 4/23/15, 11:49 AM|