Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
7 Vastaukset
21644 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää

That will affect all reports that use that format correct?

Answer updated

Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää
Paras vastaus

Thanks a lot guys....!

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
syysk. 15
4831
1
huhtik. 25
410
2
maalisk. 25
586
4
marrask. 24
6178
1
maalisk. 24
1177