Ir al contenido
Menú
Se marcó esta pregunta
7 Respuestas
22110 Vistas

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
Descartar
Mejor respuesta

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
Descartar

That will affect all reports that use that format correct?

Answer updated

Mejor respuesta

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
Descartar
Mejor respuesta

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
Descartar
Mejor respuesta

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
Descartar
Mejor respuesta

Thanks a lot guys....!

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
sept 15
5197
1
abr 25
1137
2
mar 25
1276
4
nov 24
7022
1
mar 24
1946