Skip to content

Commit 8391f66

Browse files
committed
[MIG] report_footer_html: Migration to 18.0
MT-12187 @moduon
1 parent 25ee98b commit 8391f66

File tree

12 files changed

+190
-53
lines changed

12 files changed

+190
-53
lines changed

report_footer_html/README.rst

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
.. image:: https://odoo-community.org/readme-banner-image
2-
:target: https://odoo-community.org/get-involved?utm_source=readme
3-
:alt: Odoo Community Association
4-
51
==================
62
Report Footer HTML
73
==================
@@ -17,24 +13,44 @@ Report Footer HTML
1713
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
1814
:target: https://odoo-community.org/page/development-status
1915
:alt: Alpha
20-
.. |badge2| image:: https://img.shields.io/badge/license-LGPL--3-blue.png
16+
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
2117
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
2218
:alt: License: LGPL-3
2319
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github
24-
:target: https://github.com/OCA/reporting-engine/tree/16.0/report_footer_html
20+
:target: https://github.com/OCA/reporting-engine/tree/18.0/report_footer_html
2521
:alt: OCA/reporting-engine
2622
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_footer_html
23+
:target: https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-report_footer_html
2824
:alt: Translate me on Weblate
2925
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30-
:target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=18.0
3127
:alt: Try me on Runboat
3228

3329
|badge1| |badge2| |badge3| |badge4| |badge5|
3430

3531
This module extends the report configuration in order to display HTML
3632
content inside Report Footer on chosen reports.
3733

34+
Implementation Details
35+
~~~~~~~~~~~~~~~~~~~~~~
36+
37+
The footer is injected into various report layouts. In some cases, the
38+
native footer div is **replaced** instead of just adding content before
39+
it:
40+
41+
- **``Bubble``**: The div is replaced to move the vertical separator bar
42+
that splits the footer content, ensuring a clean layout with the
43+
custom footer displayed above the native one.
44+
45+
- **``Standard``, ``Folder``, ``Boxed`` and ``Bold``**: The div is
46+
replaced and the footer layout is modified to ensure the HTML footer
47+
content occupies the full width instead of appearing inline with other
48+
elements.
49+
50+
In other layouts (``striped``, ``wave``), the custom footer is simply
51+
inserted before the native footer without replacing it, as the layout
52+
structure handles the distribution correctly.
53+
3854
.. IMPORTANT::
3955
This is an alpha version, the data model and design can change at any time without warning.
4056
Only for development or testing purpose, do not use in production.
@@ -61,13 +77,21 @@ To use this module, you need to:
6177
3. Change Paperformat of this Report and adjust *Bottom Margin (mm)*
6278
accordingly.
6379

80+
Known issues / Roadmap
81+
======================
82+
83+
- Due to Odoo limitations, hyperlinked text does not work in report
84+
footers.
85+
- Links can only be added by pasting the full URL directly into the
86+
footer.
87+
6488
Bug Tracker
6589
===========
6690

6791
Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_.
6892
In case of trouble, please check there if your issue has already been reported.
6993
If you spotted it first, help us to smash it by providing a detailed and welcomed
70-
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_footer_html%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
94+
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_footer_html%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
7195

7296
Do not contact contributors directly about support or help with technical issues.
7397

@@ -85,6 +109,7 @@ Contributors
85109
- Eduardo de Miguel (`Moduon <https://www.moduon.team/>`__)
86110
- Rafael Blasco (`Moduon <https://www.moduon.team/>`__)
87111
- David Vidal (`Moduon <https://www.moduon.team/>`__)
112+
- Joel Estrada (`Moduon <https://www.moduon.team/>`__)
88113

89114
Maintainers
90115
-----------
@@ -110,6 +135,6 @@ Current `maintainers <https://odoo-community.org/page/maintainer-role>`__:
110135

111136
|maintainer-Shide| |maintainer-rafaelbn|
112137

113-
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/16.0/report_footer_html>`_ project on GitHub.
138+
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/18.0/report_footer_html>`_ project on GitHub.
114139

115140
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

report_footer_html/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"name": "Report Footer HTML",
66
"summary": "Show HTML content in desired Footer Reports",
7-
"version": "16.0.1.0.0",
7+
"version": "18.0.1.0.0",
88
"development_status": "Alpha",
99
"category": "Tools",
1010
"website": "https://github.com/OCA/reporting-engine",

report_footer_html/i18n/es.po

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 16.0\n"
7+
"Project-Id-Version: Odoo Server 18.0+e\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"POT-Creation-Date: 2025-10-21 08:01+0000\n"
10-
"PO-Revision-Date: 2025-10-21 10:02+0200\n"
11-
"Last-Translator: \n"
9+
"POT-Creation-Date: 2025-11-12 13:27+0000\n"
10+
"PO-Revision-Date: 2025-11-12 14:27+0100\n"
11+
"Last-Translator: Joel Estrada Castellano <[email protected]>\n"
1212
"Language-Team: \n"
1313
"Language: es\n"
1414
"MIME-Version: 1.0\n"
@@ -19,8 +19,8 @@ msgstr ""
1919

2020
#. module: report_footer_html
2121
#: model:ir.model.fields,field_description:report_footer_html.field_ir_actions_report__footer_html
22-
msgid "Footer HTML"
23-
msgstr "HTML del Pie de Página"
22+
msgid "Extra Footer"
23+
msgstr "Pie de página extra"
2424

2525
#. module: report_footer_html
2626
#: model:ir.model,name:report_footer_html.model_ir_actions_report

report_footer_html/i18n/it.po

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,28 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 16.0\n"
7+
"Project-Id-Version: Odoo Server 18.0+e\n"
88
"Report-Msgid-Bugs-To: \n"
9-
"Last-Translator: Automatically generated\n"
10-
"Language-Team: none\n"
9+
"POT-Creation-Date: 2025-11-12 13:27+0000\n"
10+
"PO-Revision-Date: 2025-11-12 14:28+0100\n"
11+
"Last-Translator: Joel Estrada Castellano <[email protected]>\n"
12+
"Language-Team: \n"
1113
"Language: it\n"
1214
"MIME-Version: 1.0\n"
1315
"Content-Type: text/plain; charset=UTF-8\n"
14-
"Content-Transfer-Encoding: \n"
15-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
16+
"Content-Transfer-Encoding: 8bit\n"
17+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18+
"X-Generator: Poedit 3.5\n"
1619

1720
#. module: report_footer_html
1821
#: model:ir.model.fields,field_description:report_footer_html.field_ir_actions_report__footer_html
19-
msgid "Footer HTML"
20-
msgstr ""
22+
msgid "Extra Footer"
23+
msgstr "Extra piè di pagina"
2124

2225
#. module: report_footer_html
2326
#: model:ir.model,name:report_footer_html.model_ir_actions_report
2427
msgid "Report Action"
25-
msgstr ""
28+
msgstr "Azione report"
2629

2730
#. module: report_footer_html
2831
#: model:ir.model.fields,help:report_footer_html.field_ir_actions_report__footer_html

report_footer_html/i18n/report_footer_html.pot

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@
44
#
55
msgid ""
66
msgstr ""
7-
"Project-Id-Version: Odoo Server 16.0\n"
7+
"Project-Id-Version: Odoo Server 18.0+e\n"
88
"Report-Msgid-Bugs-To: \n"
9+
"POT-Creation-Date: 2025-11-12 13:26+0000\n"
10+
"PO-Revision-Date: 2025-11-12 13:26+0000\n"
911
"Last-Translator: \n"
1012
"Language-Team: \n"
1113
"MIME-Version: 1.0\n"
@@ -15,7 +17,7 @@ msgstr ""
1517

1618
#. module: report_footer_html
1719
#: model:ir.model.fields,field_description:report_footer_html.field_ir_actions_report__footer_html
18-
msgid "Footer HTML"
20+
msgid "Extra Footer"
1921
msgstr ""
2022

2123
#. module: report_footer_html

report_footer_html/models/ir_actions_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class IrActionsReport(models.Model):
88
_inherit = "ir.actions.report"
99

1010
footer_html = fields.Html(
11-
string="Footer HTML",
11+
string="Extra Footer",
1212
help="This HTML will be displayed in the footer of this report.\n"
1313
"It's recommended to change Paper Format to a new one that fits "
1414
"correctly to this report by adjusting 'Bottom Margin (mm)' accordingly.",
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
- Eduardo de Miguel ([Moduon](https://www.moduon.team/))
22
- Rafael Blasco ([Moduon](https://www.moduon.team/))
33
- David Vidal ([Moduon](https://www.moduon.team/))
4+
- Joel Estrada ([Moduon](https://www.moduon.team/))
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,11 @@
11
This module extends the report configuration in order to display HTML content inside Report Footer on chosen reports.
2+
3+
### Implementation Details
4+
5+
The footer is injected into various report layouts. In some cases, the native footer div is **replaced** instead of just adding content before it:
6+
7+
- **`Bubble`**: The div is replaced to move the vertical separator bar that splits the footer content, ensuring a clean layout with the custom footer displayed above the native one.
8+
9+
- **`Standard`, `Folder`, `Boxed` and `Bold`**: The div is replaced and the footer layout is modified to ensure the HTML footer content occupies the full width instead of appearing inline with other elements.
10+
11+
In other layouts (`striped`, `wave`), the custom footer is simply inserted before the native footer without replacing it, as the layout structure handles the distribution correctly.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- Due to Odoo limitations, hyperlinked text does not work in report footers.
2+
- Links can only be added by pasting the full URL directly into the footer.

report_footer_html/static/description/index.html

Lines changed: 44 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
55
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6-
<title>README.rst</title>
6+
<title>Report Footer HTML</title>
77
<style type="text/css">
88

99
/*
@@ -360,23 +360,35 @@
360360
</style>
361361
</head>
362362
<body>
363-
<div class="document">
363+
<div class="document" id="report-footer-html">
364+
<h1 class="title">Report Footer HTML</h1>
364365

365-
366-
<a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367-
<img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368-
</a>
369-
<div class="section" id="report-footer-html">
370-
<h1>Report Footer HTML</h1>
371366
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
372367
!! This file is generated by oca-gen-addon-readme !!
373368
!! changes will be overwritten. !!
374369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375370
!! source digest: sha256:aa09fe759dfa23de6a358d6eaa6121c78a2ab177a1739b6480d141915e6d5bd5
376371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/reporting-engine/tree/16.0/report_footer_html"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-report_footer_html"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/reporting-engine/tree/18.0/report_footer_html"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/reporting-engine-18-0/reporting-engine-18-0-report_footer_html"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378373
<p>This module extends the report configuration in order to display HTML
379374
content inside Report Footer on chosen reports.</p>
375+
<div class="section" id="implementation-details">
376+
<h1>Implementation Details</h1>
377+
<p>The footer is injected into various report layouts. In some cases, the
378+
native footer div is <strong>replaced</strong> instead of just adding content before
379+
it:</p>
380+
<ul class="simple">
381+
<li><strong>``Bubble``</strong>: The div is replaced to move the vertical separator bar
382+
that splits the footer content, ensuring a clean layout with the
383+
custom footer displayed above the native one.</li>
384+
<li><strong>``Standard``, ``Folder``, ``Boxed`` and ``Bold``</strong>: The div is
385+
replaced and the footer layout is modified to ensure the HTML footer
386+
content occupies the full width instead of appearing inline with other
387+
elements.</li>
388+
</ul>
389+
<p>In other layouts (<tt class="docutils literal">striped</tt>, <tt class="docutils literal">wave</tt>), the custom footer is simply
390+
inserted before the native footer without replacing it, as the layout
391+
structure handles the distribution correctly.</p>
380392
<div class="admonition important">
381393
<p class="first admonition-title">Important</p>
382394
<p class="last">This is an alpha version, the data model and design can change at any time without warning.
@@ -388,11 +400,12 @@ <h1>Report Footer HTML</h1>
388400
<ul class="simple">
389401
<li><a class="reference internal" href="#use-cases-context" id="toc-entry-1">Use Cases / Context</a></li>
390402
<li><a class="reference internal" href="#usage" id="toc-entry-2">Usage</a></li>
391-
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-3">Bug Tracker</a></li>
392-
<li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
393-
<li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
394-
<li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
395-
<li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li>
403+
<li><a class="reference internal" href="#known-issues-roadmap" id="toc-entry-3">Known issues / Roadmap</a></li>
404+
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-4">Bug Tracker</a></li>
405+
<li><a class="reference internal" href="#credits" id="toc-entry-5">Credits</a><ul>
406+
<li><a class="reference internal" href="#authors" id="toc-entry-6">Authors</a></li>
407+
<li><a class="reference internal" href="#contributors" id="toc-entry-7">Contributors</a></li>
408+
<li><a class="reference internal" href="#maintainers" id="toc-entry-8">Maintainers</a></li>
396409
</ul>
397410
</li>
398411
</ul>
@@ -412,32 +425,42 @@ <h2><a class="toc-backref" href="#toc-entry-2">Usage</a></h2>
412425
accordingly.</li>
413426
</ol>
414427
</div>
428+
<div class="section" id="known-issues-roadmap">
429+
<h2><a class="toc-backref" href="#toc-entry-3">Known issues / Roadmap</a></h2>
430+
<ul class="simple">
431+
<li>Due to Odoo limitations, hyperlinked text does not work in report
432+
footers.</li>
433+
<li>Links can only be added by pasting the full URL directly into the
434+
footer.</li>
435+
</ul>
436+
</div>
415437
<div class="section" id="bug-tracker">
416-
<h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
438+
<h2><a class="toc-backref" href="#toc-entry-4">Bug Tracker</a></h2>
417439
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/reporting-engine/issues">GitHub Issues</a>.
418440
In case of trouble, please check there if your issue has already been reported.
419441
If you spotted it first, help us to smash it by providing a detailed and welcomed
420-
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_footer_html%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
442+
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_footer_html%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
421443
<p>Do not contact contributors directly about support or help with technical issues.</p>
422444
</div>
423445
<div class="section" id="credits">
424-
<h2><a class="toc-backref" href="#toc-entry-4">Credits</a></h2>
446+
<h2><a class="toc-backref" href="#toc-entry-5">Credits</a></h2>
425447
<div class="section" id="authors">
426-
<h3><a class="toc-backref" href="#toc-entry-5">Authors</a></h3>
448+
<h3><a class="toc-backref" href="#toc-entry-6">Authors</a></h3>
427449
<ul class="simple">
428450
<li>Moduon</li>
429451
</ul>
430452
</div>
431453
<div class="section" id="contributors">
432-
<h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
454+
<h3><a class="toc-backref" href="#toc-entry-7">Contributors</a></h3>
433455
<ul class="simple">
434456
<li>Eduardo de Miguel (<a class="reference external" href="https://www.moduon.team/">Moduon</a>)</li>
435457
<li>Rafael Blasco (<a class="reference external" href="https://www.moduon.team/">Moduon</a>)</li>
436458
<li>David Vidal (<a class="reference external" href="https://www.moduon.team/">Moduon</a>)</li>
459+
<li>Joel Estrada (<a class="reference external" href="https://www.moduon.team/">Moduon</a>)</li>
437460
</ul>
438461
</div>
439462
<div class="section" id="maintainers">
440-
<h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
463+
<h3><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h3>
441464
<p>This module is maintained by the OCA.</p>
442465
<a class="reference external image-reference" href="https://odoo-community.org">
443466
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -447,7 +470,7 @@ <h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
447470
promote its widespread use.</p>
448471
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainers</a>:</p>
449472
<p><a class="reference external image-reference" href="https://github.com/Shide"><img alt="Shide" src="https://github.com/Shide.png?size=40px" /></a> <a class="reference external image-reference" href="https://github.com/rafaelbn"><img alt="rafaelbn" src="https://github.com/rafaelbn.png?size=40px" /></a></p>
450-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/16.0/report_footer_html">OCA/reporting-engine</a> project on GitHub.</p>
473+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/18.0/report_footer_html">OCA/reporting-engine</a> project on GitHub.</p>
451474
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
452475
</div>
453476
</div>

0 commit comments

Comments
 (0)