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+
15=============================
26Report Display Name in Footer
37=============================
@@ -13,7 +17,7 @@ Report Display Name in Footer
1317.. |badge1 | image :: https://img.shields.io/badge/maturity-Alpha-red.png
1418 :target: https://odoo-community.org/page/development-status
1519 :alt: Alpha
16- .. |badge2 | image :: https://img.shields.io/badge/licence -LGPL--3-blue.png
20+ .. |badge2 | image :: https://img.shields.io/badge/license -LGPL--3-blue.png
1721 :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
1822 :alt: License: LGPL-3
1923.. |badge3 | image :: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github
@@ -36,32 +40,6 @@ appear.
3640Pagination will appear on the left side and document name on the right
3741side of the footer.
3842
39- Implementation Details
40- ~~~~~~~~~~~~~~~~~~~~~~
41-
42- The pagination and document name positioning is implemented differently
43- across report layouts:
44-
45- **Layouts using ``replace`` (``Standard``, ``Folder``): **
46-
47- - The entire report_footer container div is **replaced ** to recreate the
48- structure with the pagination moved below the company footer
49- - This approach is necessary because these layouts use
50- ``<div t-field="company.report_footer"/> `` instead of ``<span> ``, and
51- you cannot add child elements inside the element.
52- - The original pagination div is deleted first, then the new structure
53- is created with both the company footer and pagination in the correct
54- order
55-
56- **Other layouts (``Striped``, ``Boxed``, ``Bold``, ``Bubble``,
57- ``Wave``): **
58-
59- - Elements are repositioned using ``move `` operations or by adding CSS
60- classes (``float-start ``, ``float-end ``)
61-
62- In all cases, the comma separator originally present in the document
63- name is removed by modifying the ``t-out `` attribute.
64-
6543.. IMPORTANT ::
6644 This is an alpha version, the data model and design can change at any time without warning.
6745 Only for development or testing purpose, do not use in production.
@@ -92,38 +70,38 @@ Configuration
9270
9371To configure this module, you need to:
9472
95- 1. Go to System parameters and create or edit
73+ 1. Go to System parameters and create
9674 ``report.display_name_in_footer_models `` parameter.
9775
98762. Add desired model names separated by comma.
9977
100- - If you want to print name on all reports, just write 'all' on the
101- value.
102- - If you want to exclude certain models, add '-' before model name.
78+ - If you want to print name on all reports, just write 'all' on the
79+ value.
80+ - If you want to exclude certain models, add '-' before model name.
10381
104823. Examples:
10583
106- - Only few models: sale.order,purchase.order,stock.picking
107- - All models: all
108- - All models except two: all,-sale.order,-purchase.order
84+ - Only few models: sale.order,purchase.order,stock.picking
85+ - All models: all
86+ - All models except two: all,-sale.order,-purchase.order
10987
110884. The field printed in the report will be *name * for any type of
11189 document. If your document doesn't have this field, please exclude
11290 from the list with '-' and the name of the model.
11391
114- 5. Compatible on all document layout :
92+ 5. Compatible with all document layouts :
11593
116- - Light
117- - Boxed
118- - Bold
119- - Striped
120- - Bubble
121- - Wave
122- - Folder
94+ - Light
95+ - Boxed
96+ - Bold
97+ - Striped
98+ - Bubble
99+ - Wave
100+ - Folder
123101
1241026. Compatible report types:
125103
126- - PDF
104+ - PDF
127105
128106Usage
129107=====
@@ -159,6 +137,32 @@ setting it to "stock.picking.batch", the module will establish that all
159137the documents contained in that report (whether invoices or delivery
160138notes) must include the name in the footer.
161139
140+ Implementation Details
141+ ~~~~~~~~~~~~~~~~~~~~~~
142+
143+ The pagination and document name positioning is implemented differently
144+ across report layouts:
145+
146+ **Layouts using ``replace`` (``Standard``, ``Folder``): **
147+
148+ - The entire report_footer container div is **replaced ** to recreate
149+ the structure with the pagination moved below the company footer
150+ - This approach is necessary because these layouts use
151+ ``<div t-field="company.report_footer"/> `` instead of ``<span> ``, and
152+ you cannot add child elements inside the element.
153+ - The original pagination div is deleted first, then the new structure
154+ is created with both the company footer and pagination in the correct
155+ order
156+
157+ **Other layouts (``Striped``, ``Boxed``, ``Bold``, ``Bubble``,
158+ ``Wave``): **
159+
160+ - Elements are repositioned using ``move `` operations or by adding CSS
161+ classes (``float-start ``, ``float-end ``)
162+
163+ In all cases, the comma separator originally present in the document
164+ name is removed by modifying the ``t-out `` attribute.
165+
162166Bug Tracker
163167===========
164168
@@ -180,9 +184,9 @@ Authors
180184Contributors
181185------------
182186
183- - Eduardo de Miguel (`Moduon <https://www.moduon.team/ >`__)
184- - Rafael Blasco (`Moduon <https://www.moduon.team/ >`__)
185- - Joel Estrada (`Moduon <https://www.moduon.team/ >`__)
187+ - Eduardo de Miguel (`Moduon <https://www.moduon.team/ >`__)
188+ - Rafael Blasco (`Moduon <https://www.moduon.team/ >`__)
189+ - Joel Estrada (`Moduon <https://www.moduon.team/ >`__)
186190
187191Maintainers
188192-----------
0 commit comments