Skip to Content
Menu
This question has been flagged
7 Replies
22189 Zobrazenia

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
Zrušiť
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
Zrušiť

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
Zrušiť
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
Zrušiť
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
Zrušiť
Best Answer

Thanks a lot guys....!

Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
2
sep 15
5273
1
apr 25
1221
2
mar 25
1368
4
nov 24
7089
1
mar 24
2007