Skip to content

Commit e1f96b8

Browse files
committed
[FIX] l10n_it_central_journal_reportlab: exclude notes and sections from report and avoid error if partner or move is false
This PR fixes exclude the lines of notes and section from the export and avoid errors if the move has not the name or there is not partner name
1 parent 22f3cdb commit e1f96b8

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

l10n_it_central_journal_reportlab/README.rst

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,17 @@ Authors
6262
Contributors
6363
------------
6464

65-
- Gianmarco Conte <gconte@dinamicheaziendali.it>
66-
- Lara Baggio <lbaggio@linkgroup.it>
67-
- Glauco Prina <gprina@linkgroup.it>
68-
- Giuseppe Borruso <gborruso@dinamicheaziendali.it>
69-
- `Aion Tech <https://aiontech.company/>`__:
65+
- Gianmarco Conte <gconte@dinamicheaziendali.it>
66+
- Lara Baggio <lbaggio@linkgroup.it>
67+
- Glauco Prina <gprina@linkgroup.it>
68+
- Giuseppe Borruso <gborruso@dinamicheaziendali.it>
69+
- `Aion Tech <https://aiontech.company/>`__:
7070

71-
- Simone Rubino <simone.rubino@aion-tech.it>
71+
- Simone Rubino <simone.rubino@aion-tech.it>
72+
73+
- `Stesi Consulting <https://www.stesi.consulting/>`__:
74+
75+
- Michele Di Croce <dicroce.m@stesi.consulting>
7276

7377
Maintainers
7478
-----------

l10n_it_central_journal_reportlab/readme/CONTRIBUTORS.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@
44
- Giuseppe Borruso \<<gborruso@dinamicheaziendali.it>\>
55
- [Aion Tech](https://aiontech.company/):
66
- Simone Rubino \<<simone.rubino@aion-tech.it>\>
7+
- [Stesi Consulting](https://www.stesi.consulting/):
8+
- Michele Di Croce \<<dicroce.m@stesi.consulting>\>

l10n_it_central_journal_reportlab/static/description/index.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,10 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2>
413413
<li>Simone Rubino &lt;<a class="reference external" href="mailto:simone.rubino&#64;aion-tech.it">simone.rubino&#64;aion-tech.it</a>&gt;</li>
414414
</ul>
415415
</li>
416+
<li><a class="reference external" href="https://www.stesi.consulting/">Stesi Consulting</a>:<ul>
417+
<li>Michele Di Croce &lt;<a class="reference external" href="mailto:dicroce.m&#64;stesi.consulting">dicroce.m&#64;stesi.consulting</a>&gt;</li>
418+
</ul>
419+
</li>
416420
</ul>
417421
</div>
418422
<div class="section" id="maintainers">

l10n_it_central_journal_reportlab/wizard/print_giornale.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright 2018 Gianmarco Conte (gconte@dinamicheaziendali.it)
22
# Copyright 2022 Giuseppe Borruso (gborruso@dinamicheaziendali.it)
33
# Copyright 2024 Simone Rubino - Aion Tech
4+
# Copyright 2025 Michele Di Croce - Stesi Consulting
45

56
import base64
67
import io
@@ -214,6 +215,7 @@ def get_line_reportlab_ids(self):
214215
AND am.state IN %(target_type)s
215216
AND aml.journal_id IN %(journal_ids)s
216217
AND aml.company_id = %(company_id)s
218+
AND aml.display_type NOT IN ('line_note','line_section')
217219
ORDER BY
218220
am.date,
219221
am.name

0 commit comments

Comments
 (0)