html - display content before footer in report odoo -
i'm trying display div "test" before div footer , did code :
<?xml version="1.0" encoding="utf-8"?> <openerp> <data> <template id="mysale_report" inherit_id="report.external_layout_footer"> <xpath expr="//div[@class='footer']" position="before"> <div class ="test"> fix content </div> </xpath> </template> </data> </openerp>
but nothing show , in fact if change 'before' 'after' div test appear inside footer . question why cant display before footer . there way display content before footer ? , .
if using debian jessie, need install manually wkhtmltopdf library form here, because version of wkhtmltopdf available in debian repositories not support headers , footers. if before or using other os, try this:
<?xml version="1.0" encoding="utf-8"?> <openerp> <data> <template id="mysale_report" inherit_id="report.external_layout_footer"> <xpath expr="//div[@class='footer']" position="replace"> <div class="footer"> <div class="test"> fix content </div> <div class="text-center" style="border-top: 1px solid black;"> <ul t-if="not company.custom_footer" class="list-inline"> <li t-if="company.phone">phone: <span t-field="company.phone"/></li> <li t-if="company.fax , company.phone">&bull;</li> <li t-if="company.fax">fax: <span t-field="company.fax"/></li> <li t-if="company.email">&bull;</li> <li t-if="company.email">email: <span t-field="company.email"/></li> <li t-if="company.website">&bull;</li> <li t-if="company.website">website: <span t-field="company.website"/></li> </ul> <t t-if="company.custom_footer"> <span t-raw="company.rml_footer"/> </t> <ul class="list-inline"> <li>page:</li> <li><span class="page"/></li> <li>/</li> <li><span class="topage"/></li> </ul> </div> </div> </xpath> </template> </data>
i hope can you!
Comments
Post a Comment