İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
16443 Görünümler

Hello,
I have override footer report like this :

<template id="external_footer_custom" inherit_id="report.external_layout_footer">
<xpath expr="//div[@class='footer']" position="replace">     <div class="footer">     <div class="text-center" style="padding-bottom:15px"> <img style="display:inline-block;margin-right:30px" src="/mikeb_modele/static/images/eco-artisan.jpg" /> <img style="display:inline-block;margin-right:20px" src="/mikeb_modele/static/images/rge-sol.png" /> <img style="display:inline-block;margin-right:20px" src="/mikeb_modele/static/images/rge-pac.png" /> <img style="display:inline-block;margin-right:20px" src="/mikeb_modele/static/images/rge-pv.png" /> <img style="display:inline-block" src="/mikeb_modele/static/images/rge-bois.png" /> </div> <div class="text-center" style="border-top: 1px solid black;font-size:0.6em"> Adresse du siège: <span t-field="company.street" /> <span t-field="company.zip" /> <span t-field="company.city" /><br /> <span t-field="company.partner_id.comment" /><br /> Tel: <span t-field="company.phone" /> - Fax: <span t-field="company.fax" /><br /> Siret: <span t-field="company.siret" /> - Ape: <span t-field="company.ape" /><br /> TVA intracommunautaire: <span t-field="company.vat" /> </div> <div class="row" style="margin:10px 0px;"></div>     </div> </xpath>

My problem is the footer is too high and a part of the footer is outside the page !
how can i change the "y position" of the footer ?

Thank you!

Avatar
Vazgeç

You should go with paperformat for increase the height of the footer.

En İyi Yanıt

you can add paper format; and you change "margin_bottom".

<record id="paperformat_frenchcheck" model="report.paperformat">
    <field name="name">French Bank Check</field>
    <field name="default" eval="True"/>
    <field name="format">custom</field>
    <field name="page_height">80</field>
    <field name="page_width">175</field>
    <field name="orientation">Portrait</field>
    <field name="margin_top">3</field>
    <field name="margin_bottom">3</field>
    <field name="margin_left">3</field>
    <field name="margin_right">3</field>
    <field name="header_line" eval="False"/>
    <field name="header_spacing">3</field>
    <field name="dpi">80</field>
</record>

<record id="module.report_id" model="ir.actions.report.xml">

<field name="paperformat_id" ref="module.paperformat_frenchcheck/>

</record>


 

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Ara 17
3523
1
Eyl 17
5004
2
Şub 17
7049
0
Oca 16
3261
3
Tem 15
3846