Hi all,
I want to edit header and footer of sale order report (quotation, order, invoice...). That worked fine in html, but with report there are some problem.
1. Header is only displayed once, in first page.report. The others are empty
2. Footer is not displayed in any page.
Environment information
+ Odoo 8 in Ubuntu 12.01 32bit
+ Using wkhtmltox-0.12.1_linux-wheezy-i386.deb (with patched qt)
+ I set parameters, as report.url, base.url.freeze, ..so on
Here is my code to modify header and footer
<template id="report_quotation_header" inherit_id="report.external_layout_header">
<xpath expr="//div[@class='header']" position="replace">
<div class="header">
<t t-set="data_report_margin_top" t-value="12"/>
<t t-set="data_report_header_spacing" t-value="9"/>
<t t-set="data_report_dpi" t-value="110"/>
<div class="row">
<div class="col-xs-3">
<img src="/sale_extension/static/image/logo/header.jpg" style="max-height: 90px;"/>
</div>
</div>
</div>
</xpath>
</template> <!-- end teamplate header-->
<template id="report_quotation_footer" inherit_id="report.external_layout_footer">
<xpath expr="//div[@class='footer']" position="replace">
<div class="footer">
<div class="text-center">
<t t-if="'partner_id' in company"><span t-field="company.partner_id"/></t> -
<t t-if="'company_registry' in company"><span t-field="company.company_registry"/></t> <br/>
<t t-if="'street' in company"><span t-field="company.street"/>, </t>
<t t-if="'city' in company"><span t-field="company.city"/></t>
<t t-if="'zip' in company"><span t-field="company.zip"/></t>
<t t-if="'phone' in company">P: <span t-field="company.phone"/></t>
<t t-if="'fax' in company">F: <span t-field="company.fax"/></t>
</div>
</div>
</xpath>
</template> <!-- end teamplate footer -->
Thank all you so much
------------------------
SOLVE :
Must use wkhtmltopdf version 0.12.0 for Ubuntu 12.0
With Ubuntu 14.0, using wkhtmltopdf version 0.12.1
But the problem I have now is with CentOS 6, what version for it? Or is there bug in wkhtmltopd?