This question has been flagged
2230 Views

My footer on the document template does not work, when calling o_boxed_footer. o_background_footer does work.

DOES NOT WORK:

        <div class="footer o_boxed_footer">

            <div class="text-center">

                <ul class="list-inline">

                    <li t-if="company.phone" class="list-inline-item">Tel: <span t-field="company.phone"/></li>

                    <li t-if="company.email" class="list-inline-item">Mail: <span t-field="company.email"/></li>

                    <li t-if="company.website" class="list-inline-item">Web: <span t-field="company.website"/></li>

                    <li t-if="company.vat" class="list-inline-item"><t t-esc="company.country_id.vat_label or 'Tax ID'"/>: <span t-field="company.vat"/></li>

                </ul>

                <div t-field="company.report_footer"/>

                <div t-if="report_type == 'pdf'">

                    Page: <span class="page"/> / <span class="topage"/>

                </div>

            </div>

        </div>


DOES WORK (but without layout)

        <div class="footer">

            <div class="text-center">

                <ul class="list-inline">

                    <li t-if="company.phone" class="list-inline-item">Tel: <span t-field="company.phone"/></li>

                    <li t-if="company.email" class="list-inline-item">Mail: <span t-field="company.email"/></li>

                    <li t-if="company.website" class="list-inline-item">Web: <span t-field="company.website"/></li>

                    <li t-if="company.vat" class="list-inline-item"><t t-esc="company.country_id.vat_label or 'Tax ID'"/>: <span t-field="company.vat"/></li>

                </ul>

                <div t-field="company.report_footer"/>

                <div t-if="report_type == 'pdf'">

                    Page: <span class="page"/> / <span class="topage"/>

                </div>

            </div>

        </div>


Where is o_box_footer defined, so that I can take a look at where the problem is?

Avatar
Discard
Author

I have tried:

- Updating to wkhtmltopdf 12.5

- Running in other VMware instance, where it works

- Restoring back-ups from working instances to this one, to no avail