Hello, I'm having a bit of a problem with the webkit reports. When creating the report PDF, the contents show up fine, but the header is missing (just an empty white area fills top of the page).
What makes this interesting is that when I view the HTML version of the report (by switching on the developer mode and going to Settings -> Technical -> Actions -> Reports and enabling the debug mode for the report), the header is visible. So there is some kind of issue that happens when doing the PDF conversion.
The same problem occurs both when viewing a webkit report in my own module and in the sale_order_webkit module. The base_headers_webkit module has been installed, and the wkhtmltopdf library as well
The report is invoked like this:
<?xml version="1.0" encoding="utf-8"?>
<openerp>
<data>
<report id="sale.report_sale_order"
name="sale.order.webkit"
auto="False"
model="sale.order"
file="sale_order_webkit/report/sale_order.mako"
string="Quotation - Order"
webkit_header="base_headers_webkit.base_reports_portrait_header"
report_type="webkit"/>
</data>
</openerp>
Anyone encountered similar issues? The webkit_header attribute should be valid since it does not throw a ValueError.
Hi ! I've the same issue. What do you mean by "The report is invoked like this:", and where is the report.py file ? The code of Ghanshyam Prajapati have fixed this ? Thanks :)
Hi, the problem remains also after trying Ghanshyam's suggestions. I'm beginning to think the issue has something to do with my installation or server config, not the python/xml code itself, because for me, the header is missing also in Camptocamp's sale_order_webkit module, and the module apparently works just fine for other people. I will post here what I find when I get the chance to look into the issue in more detail.