Skip to content

Commit c6135ae

Browse files
kanda999AungKoKoLin1997
authored andcommitted
[18.0][ADD] report_positioned_image
1 parent 35a9cd5 commit c6135ae

45 files changed

Lines changed: 1553 additions & 318 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

pdf_xml_attachment/README.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ Authors
7979
Contributors
8080
------------
8181

82-
- Simone Orsi <simone.orsi@camptocamp.com>
83-
- Alexis de Lattre <alexis.delattre@akretion.com>
84-
- Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
82+
- Simone Orsi <simone.orsi@camptocamp.com>
83+
- Alexis de Lattre <alexis.delattre@akretion.com>
84+
- Jacques-Etienne Baudoux (BCIM) <je@bcim.be>
8585

8686
Maintainers
8787
-----------

report_csv/README.rst

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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
===============
26
Base report csv
37
===============
@@ -13,7 +17,7 @@ Base report csv
1317
.. |badge1| image:: https://img.shields.io/badge/maturity-Production%2FStable-green.png
1418
:target: https://odoo-community.org/page/development-status
1519
:alt: Production/Stable
16-
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
20+
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
1721
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1822
:alt: License: AGPL-3
1923
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github
@@ -42,15 +46,15 @@ In case the exported CSV report should be encoded in another system than
4246
UTF-8, following fields of the report record (*Settings > Technical >
4347
Reports*) should be populated accordingly.
4448

45-
- Encoding: set an encoding system (such as cp932)
46-
- Encode Error Handling: select 'Ignore' or 'Replace' as necessary.
49+
- Encoding: set an encoding system (such as cp932)
50+
- Encode Error Handling: select 'Ignore' or 'Replace' as necessary.
4751

48-
- 'Ignore': in case of an encoding error, the problematic character
49-
will be removed from the exported file.
50-
- 'Replace': in case of an encoding error, the problematic character
51-
will be replaced with '?' symbol.
52-
- Leaving the field blank: in case of an encoding error, the report
53-
generation fails with an error message.
52+
- 'Ignore': in case of an encoding error, the problematic character
53+
will be removed from the exported file.
54+
- 'Replace': in case of an encoding error, the problematic character
55+
will be replaced with '?' symbol.
56+
- Leaving the field blank: in case of an encoding error, the report
57+
generation fails with an error message.
5458

5559
Usage
5660
=====
@@ -121,12 +125,12 @@ Authors
121125
Contributors
122126
------------
123127

124-
- Enric Tobella <etobella@creublanca.es>
125-
- Jaime Arroyo <jaime.arroyo@creublanca.es>
126-
- Rattapong Chokmasermkul <rattapongc@ecosoft.co.th>
127-
- `Quartile <https://www.quartile.co>`__:
128+
- Enric Tobella <etobella@creublanca.es>
129+
- Jaime Arroyo <jaime.arroyo@creublanca.es>
130+
- Rattapong Chokmasermkul <rattapongc@ecosoft.co.th>
131+
- `Quartile <https://www.quartile.co>`__:
128132

129-
- Aung Ko Ko Lin
133+
- Aung Ko Ko Lin
130134

131135
Maintainers
132136
-----------

report_csv/static/description/index.html

Lines changed: 17 additions & 11 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>Base report csv</title>
6+
<title>README.rst</title>
77
<style type="text/css">
88

99
/*
@@ -360,16 +360,21 @@
360360
</style>
361361
</head>
362362
<body>
363-
<div class="document" id="base-report-csv">
364-
<h1 class="title">Base report csv</h1>
363+
<div class="document">
365364

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="base-report-csv">
370+
<h1>Base report csv</h1>
366371
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367372
!! This file is generated by oca-gen-addon-readme !!
368373
!! changes will be overwritten. !!
369374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370375
!! source digest: sha256:380b9dc8c98a77b37a8e5e5846b3ddc471dcbf470c9805cc5f9a04f2e4913f12
371376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/reporting-engine/tree/18.0/report_csv"><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_csv"><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>
377+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Production/Stable" src="https://img.shields.io/badge/maturity-Production%2FStable-green.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/reporting-engine/tree/18.0/report_csv"><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_csv"><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>
373378
<p>This module provides a basic report class to generate csv report.</p>
374379
<p><strong>Table of contents</strong></p>
375380
<div class="contents local topic" id="contents">
@@ -386,7 +391,7 @@ <h1 class="title">Base report csv</h1>
386391
</ul>
387392
</div>
388393
<div class="section" id="configuration">
389-
<h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
394+
<h2><a class="toc-backref" href="#toc-entry-1">Configuration</a></h2>
390395
<p>In case the exported CSV report should be encoded in another system than
391396
UTF-8, following fields of the report record (<em>Settings &gt; Technical &gt;
392397
Reports</em>) should be populated accordingly.</p>
@@ -404,7 +409,7 @@ <h1><a class="toc-backref" href="#toc-entry-1">Configuration</a></h1>
404409
</ul>
405410
</div>
406411
<div class="section" id="usage">
407-
<h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
412+
<h2><a class="toc-backref" href="#toc-entry-2">Usage</a></h2>
408413
<p>An example of CSV report for partners on a module called
409414
`module_name`:</p>
410415
<p>A python class :</p>
@@ -446,23 +451,23 @@ <h1><a class="toc-backref" href="#toc-entry-2">Usage</a></h1>
446451
<p>Update encoding with an appropriate value (e.g. cp932) as necessary.</p>
447452
</div>
448453
<div class="section" id="bug-tracker">
449-
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
454+
<h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
450455
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/reporting-engine/issues">GitHub Issues</a>.
451456
In case of trouble, please check there if your issue has already been reported.
452457
If you spotted it first, help us to smash it by providing a detailed and welcomed
453458
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20report_csv%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
454459
<p>Do not contact contributors directly about support or help with technical issues.</p>
455460
</div>
456461
<div class="section" id="credits">
457-
<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
462+
<h2><a class="toc-backref" href="#toc-entry-4">Credits</a></h2>
458463
<div class="section" id="authors">
459-
<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
464+
<h3><a class="toc-backref" href="#toc-entry-5">Authors</a></h3>
460465
<ul class="simple">
461466
<li>Creu Blanca</li>
462467
</ul>
463468
</div>
464469
<div class="section" id="contributors">
465-
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
470+
<h3><a class="toc-backref" href="#toc-entry-6">Contributors</a></h3>
466471
<ul class="simple">
467472
<li>Enric Tobella &lt;<a class="reference external" href="mailto:etobella&#64;creublanca.es">etobella&#64;creublanca.es</a>&gt;</li>
468473
<li>Jaime Arroyo &lt;<a class="reference external" href="mailto:jaime.arroyo&#64;creublanca.es">jaime.arroyo&#64;creublanca.es</a>&gt;</li>
@@ -474,7 +479,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
474479
</ul>
475480
</div>
476481
<div class="section" id="maintainers">
477-
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
482+
<h3><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h3>
478483
<p>This module is maintained by the OCA.</p>
479484
<a class="reference external image-reference" href="https://odoo-community.org">
480485
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -487,5 +492,6 @@ <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
487492
</div>
488493
</div>
489494
</div>
495+
</div>
490496
</body>
491497
</html>

report_display_name_in_footer/README.rst

Lines changed: 50 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
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
=============================
26
Report 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.
3640
Pagination will appear on the left side and document name on the right
3741
side 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

9371
To 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

9876
2. 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

10482
3. 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

11088
4. 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

124102
6. Compatible report types:
125103

126-
- PDF
104+
- PDF
127105

128106
Usage
129107
=====
@@ -159,6 +137,32 @@ setting it to "stock.picking.batch", the module will establish that all
159137
the documents contained in that report (whether invoices or delivery
160138
notes) 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+
162166
Bug Tracker
163167
===========
164168

@@ -180,9 +184,9 @@ Authors
180184
Contributors
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

187191
Maintainers
188192
-----------

report_partner_address/README.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ to display addresses in multiple languages. This module fills that gap.
4646
Usage
4747
=====
4848

49-
- Go to the partner record.
50-
- Fill in Address Details, including translations for the active
51-
languages.
49+
- Go to the partner record.
50+
- Fill in Address Details, including translations for the active
51+
languages.
5252

5353
The address in reports and portal pages will use the value from Address
5454
Details.
@@ -79,10 +79,10 @@ Authors
7979
Contributors
8080
------------
8181

82-
- Quartile <https://www.quartile.co>
82+
- Quartile <https://www.quartile.co>
8383

84-
- Yoshi Tashiro
85-
- Aung Ko Ko Lin
84+
- Yoshi Tashiro
85+
- Aung Ko Ko Lin
8686

8787
Maintainers
8888
-----------

report_pdf_form/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Authors
7575
Contributors
7676
------------
7777

78-
- Akim Juillerat akim.juillerat@camptocamp.com
78+
- Akim Juillerat akim.juillerat@camptocamp.com
7979

8080
Maintainers
8181
-----------

report_pdf_zip_download/README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ Authors
6969
Contributors
7070
------------
7171

72-
- `Quartile <https://www.quartile.co>`__:
72+
- `Quartile <https://www.quartile.co>`__:
7373

74-
- Aung Ko Ko Lin
74+
- Aung Ko Ko Lin
7575

7676
Maintainers
7777
-----------

0 commit comments

Comments
 (0)