Skip to Content
Menu
This question has been flagged
7 Replies
20784 Views

Hello, I was modifying my report footer made it with QWeb, but if I put a big text or a big image, this get cut because the footer have a fixed height, smaller than my footer content (this is what I think, correct me please).

My question is, where can I modify the footer height?

Thank you in advanced! and sorry for my english :S

Avatar
Discard
Best Answer

In menu Setting/Tehnical/Reports/Paper Format/European A4  you set Bottom Margin (mm)   (if European A4 is your company format).  

UPDATE:

Paper Format is defined globally in company view, individually in report definition.

Avatar
Discard

That will affect all reports that use that format correct?

Answer updated

Best Answer

Hello, the best way of modifying the report it is to develop a module and to inherit the template of base. You can find the module report in addons and in view you will find the layouts.xml, it is in this file that is the template footer of the report.

 

Avatar
Discard
Best Answer

Hello, the best way of modifying the report it is to develop a module and to inherit the template of base. You can find the module report in addons and in view you will find the layout, it is in this file that is the template footer of the report.

look this code:

<template id="external_layout_header" inherit_id="report.external_layout_header">
              <xpath expr="//div" position="replace">
    <div class="footer">
        <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 and company.phone">&amp;bull;</li>
                <li t-if="company.fax">Fax: <span t-field="company.fax"/></li>

                <li t-if="company.email">&amp;bull;</li>
                <li t-if="company.email">Email: <span t-field="company.email"/></li>

                <li t-if="company.website">&amp;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>      


</template>

Avatar
Discard
Best Answer

Hello, the best way of modifying the report it is to develop a module and to inherit the template of base. You can find the module report in addons and in view you will find the layout, it is in this file that is the template footer of the report.

look this code:

<template id="external_layout_header" inherit_id="report.external_layout_header">
              <xpath expr="//div" position="replace">
    <div class="footer">
        <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 and company.phone">&amp;bull;</li>
                <li t-if="company.fax">Fax: <span t-field="company.fax"/></li>

                <li t-if="company.email">&amp;bull;</li>
                <li t-if="company.email">Email: <span t-field="company.email"/></li>

                <li t-if="company.website">&amp;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>      


</template>

Avatar
Discard
Best Answer

Thanks a lot guys....!

Avatar
Discard
Related Posts Replies Views Activity
2
Sep 15
4377
4
Nov 24
5236
1
Mar 24
398
3
Sep 23
22660
0
Feb 24
1718