Files
Odoo-18.0-20251222/report_footer_html/views/report_templates.xml
tocmo0nlord adbe430761
Some checks failed
pre-commit / pre-commit (push) Has been cancelled
tests / Detect unreleased dependencies (push) Has been cancelled
tests / test with OCB (push) Has been cancelled
tests / test with Odoo (push) Has been cancelled
Initial commit: Odoo 18.0-20251222 extra-addons
2026-03-13 20:43:25 +00:00

120 lines
4.0 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<!-- Copyright 2025 Moduon Team
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl). -->
<odoo>
<template id="footer_html_template">
<div
t-if="not is_html_empty(footer_html)"
t-out="footer_html"
class="mb-2 mt-1 w-100"
/>
</template>
<template
id="external_layout_striped_footer_html"
inherit_id="web.external_layout_striped"
priority="999"
>
<xpath expr="//div[@t-field='company.report_footer']" position="before">
<t t-call="report_footer_html.footer_html_template" />
</xpath>
</template>
<template
id="external_layout_boxed_footer_html"
inherit_id="web.external_layout_boxed"
priority="999"
>
<xpath
expr="//div[@t-attf-class=&quot;{{'d-flex' if is_html_empty(company.report_header) else 'row' }} o_footer_content border-top pt-2&quot;]"
position="attributes"
>
<attribute
name="t-attf-class"
>o_footer_content border-top pt-2 d-block</attribute>
</xpath>
<xpath expr="//span[@t-field='company.report_footer']" position="before">
<t t-call="report_footer_html.footer_html_template" />
</xpath>
</template>
<template
id="external_layout_bold_footer_html"
inherit_id="web.external_layout_bold"
priority="999"
>
<xpath
expr="//div[@t-attf-class=&quot;{{'d-flex' if is_html_empty(company.report_header) else 'row' }} o_footer_content border-top pt-2&quot;]"
position="attributes"
>
<attribute
name="t-attf-class"
>o_footer_content border-top pt-2 d-block</attribute>
</xpath>
<xpath expr="//span[@t-field='company.report_footer']" position="before">
<t t-call="report_footer_html.footer_html_template" />
</xpath>
</template>
<template
id="external_layout_standard_footer_html"
inherit_id="web.external_layout_standard"
priority="999"
>
<xpath
expr="//div[hasclass('o_footer_content') and hasclass('d-flex')]"
position="attributes"
>
<attribute name="class">o_footer_content border-top pt-2 d-block</attribute>
</xpath>
<xpath expr="//div[@t-field='company.report_footer']" position="replace">
<div>
<t t-call="report_footer_html.footer_html_template" />
<span t-field="company.report_footer" />
</div>
</xpath>
</template>
<template
id="external_layout_bubble_footer_html"
inherit_id="web.external_layout_bubble"
priority="999"
>
<xpath expr="//div[@t-field='company.report_footer']" position="replace">
<div class="border-top pt-2">
<t t-call="report_footer_html.footer_html_template" />
<div t-field="company.report_footer" />
</div>
</xpath>
</template>
<template
id="external_layout_wave_footer_html"
inherit_id="web.external_layout_wave"
priority="999"
>
<xpath expr="//div[@t-field='company.report_footer']" position="before">
<t t-call="report_footer_html.footer_html_template" />
</xpath>
</template>
<template
id="external_layout_folder_footer_html"
inherit_id="web.external_layout_folder"
priority="999"
>
<xpath
expr="//div[hasclass('o_footer_content') and hasclass('d-flex')]"
position="attributes"
>
<attribute name="class">o_footer_content border-top pt-2 d-block</attribute>
</xpath>
<xpath expr="//div[@t-field='company.report_footer']" position="replace">
<div>
<t t-call="report_footer_html.footer_html_template" />
<span t-field="company.report_footer" />
</div>
</xpath>
</template>
</odoo>