Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
16424 มุมมอง

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!

อวตาร
ละทิ้ง

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

คำตอบที่ดีที่สุด

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>


 

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
0
ธ.ค. 17
3516
1
ก.ย. 17
4994
2
ก.พ. 17
7041
0
ม.ค. 16
3259
[8] Odoo Custom Report Page แก้ไขแล้ว
3
ก.ค. 15
3833