Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
16460 Ansichten

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
Verwerfen

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

Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Dez. 17
3533
1
Sept. 17
5012
2
Feb. 17
7057
0
Jan. 16
3267
3
Juli 15
3856