I'm creating a report in odoo 11 where i want to print repeatable headers and footers. Below is my code to do the same.
Header Code
<div class="header">
<img height="160" src='/module_name/static/src/img/'/>
</div>
Footer Code
<div class="footer">
<img height="160" src='/module_name/static/src/img/'/>
</div
And i'm using wkhtmltopdf version - 0.12.4. In this version the custom footer is working properly but the header isn't working.
Further Research
- When trying with wkhtmltopdf version - 0.12.1 - In this version the default header was displaying despite overriding the header with custom header
- When trying with wkhtmltopdf version - 0.12.2.2 - In this version no header and footer was displayed (not even the default)
- When trying with wkhtmltopdf version - 0.12.2.4 - In this version no header and footer was displayed (not even the default)
Any help is much appreciated to bring both custom header and footer. Thanks in advance.