تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
7 الردود
22176 أدوات العرض

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

الصورة الرمزية
إهمال
أفضل إجابة

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.

الصورة الرمزية
إهمال

That will affect all reports that use that format correct?

Answer updated

أفضل إجابة

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.

 

الصورة الرمزية
إهمال
أفضل إجابة

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>

الصورة الرمزية
إهمال
أفضل إجابة

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>

الصورة الرمزية
إهمال
أفضل إجابة

Thanks a lot guys....!

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
سبتمبر 15
5262
1
أبريل 25
1208
2
مارس 25
1348
4
نوفمبر 24
7067
1
مارس 24
1985