-
-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] l10n_it_central_journal_reportlab: Support lines without account
- Loading branch information
1 parent
a1e13af
commit e47b603
Showing
6 changed files
with
67 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ ITA - Libro giornale - Reportlab | |
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:61dcfdb267425d63d6bee99109adddf11c6a4fe7e90d15b451a13e62d7d8ca8f | ||
!! source digest: sha256:406c815cf9f5d7858e2354cdb28c41b751c27edacf1b580a4ca626ef2ea10a9a | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
|
@@ -66,6 +66,9 @@ Contributors | |
- Lara Baggio <[email protected]> | ||
- Glauco Prina <[email protected]> | ||
- Giuseppe Borruso <[email protected]> | ||
- `Aion Tech <https://aiontech.company/>`__: | ||
|
||
- Simone Rubino <[email protected]> | ||
|
||
Maintainers | ||
----------- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
- Lara Baggio \<<[email protected]>\> | ||
- Glauco Prina \<<[email protected]>\> | ||
- Giuseppe Borruso \<<[email protected]>\> | ||
- [Aion Tech](https://aiontech.company/): | ||
- Simone Rubino \<<[email protected]>\> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,11 @@ | |
|
||
/* | ||
:Author: David Goodger ([email protected]) | ||
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ | ||
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ | ||
:Copyright: This stylesheet has been placed in the public domain. | ||
Default cascading style sheet for the HTML output of Docutils. | ||
Despite the name, some widely supported CSS2 features are used. | ||
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to | ||
customize this style sheet. | ||
|
@@ -274,7 +275,7 @@ | |
margin-left: 2em ; | ||
margin-right: 2em } | ||
|
||
pre.code .ln { color: grey; } /* line numbers */ | ||
pre.code .ln { color: gray; } /* line numbers */ | ||
pre.code, code { background-color: #eeeeee } | ||
pre.code .comment, code .comment { color: #5C6576 } | ||
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } | ||
|
@@ -300,7 +301,7 @@ | |
span.pre { | ||
white-space: pre } | ||
|
||
span.problematic { | ||
span.problematic, pre.problematic { | ||
color: red } | ||
|
||
span.section-subtitle { | ||
|
@@ -366,7 +367,7 @@ <h1 class="title">ITA - Libro giornale - Reportlab</h1> | |
!! This file is generated by oca-gen-addon-readme !! | ||
!! changes will be overwritten. !! | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
!! source digest: sha256:61dcfdb267425d63d6bee99109adddf11c6a4fe7e90d15b451a13e62d7d8ca8f | ||
!! source digest: sha256:406c815cf9f5d7858e2354cdb28c41b751c27edacf1b580a4ca626ef2ea10a9a | ||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> | ||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.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/l10n-italy/tree/16.0/l10n_it_central_journal_reportlab"><img alt="OCA/l10n-italy" src="https://img.shields.io/badge/github-OCA%2Fl10n--italy-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_central_journal_reportlab"><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/l10n-italy&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p> | ||
<p><strong>Italiano</strong></p> | ||
|
@@ -408,12 +409,18 @@ <h2><a class="toc-backref" href="#toc-entry-4">Contributors</a></h2> | |
<li>Lara Baggio <<a class="reference external" href="mailto:lbaggio@linkgroup.it">lbaggio@linkgroup.it</a>></li> | ||
<li>Glauco Prina <<a class="reference external" href="mailto:gprina@linkgroup.it">gprina@linkgroup.it</a>></li> | ||
<li>Giuseppe Borruso <<a class="reference external" href="mailto:gborruso@dinamicheaziendali.it">gborruso@dinamicheaziendali.it</a>></li> | ||
<li><a class="reference external" href="https://aiontech.company/">Aion Tech</a>:<ul> | ||
<li>Simone Rubino <<a class="reference external" href="mailto:simone.rubino@aion-tech.it">simone.rubino@aion-tech.it</a>></li> | ||
</ul> | ||
</li> | ||
</ul> | ||
</div> | ||
<div class="section" id="maintainers"> | ||
<h2><a class="toc-backref" href="#toc-entry-5">Maintainers</a></h2> | ||
<p>This module is maintained by the OCA.</p> | ||
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> | ||
<a class="reference external image-reference" href="https://odoo-community.org"> | ||
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /> | ||
</a> | ||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose | ||
mission is to support the collaborative development of Odoo features and | ||
promote its widespread use.</p> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
# Copyright 2018 Gianmarco Conte ([email protected]) | ||
# Copyright 2022 Giuseppe Borruso ([email protected]) | ||
# Copyright 2024 Simone Rubino - Aion Tech | ||
|
||
import base64 | ||
import io | ||
|
@@ -330,18 +331,21 @@ def get_grupped_final_tables_report_giornale( | |
(self.progressive_debit2, self.progressive_credit), | ||
] | ||
for line in list_grupped_line: | ||
start_row += 1 | ||
row = Paragraph(str(start_row), style_name) | ||
date = Paragraph(format_date(self.env, line["date"]), style_name) | ||
move = Paragraph(line["move_name"], style_name) | ||
account_name = ( | ||
line["account_code"] + " - " + line["account_name"] | ||
if line["account_code"] | ||
else line["account_name"] | ||
) | ||
if not account_name: | ||
continue | ||
# evitiamo che i caratteri < o > vengano interpretato come tag html | ||
# dalla libreria reportlab | ||
account_name = account_name.replace("<", "<").replace(">", ">") | ||
|
||
start_row += 1 | ||
row = Paragraph(str(start_row), style_name) | ||
date = Paragraph(format_date(self.env, line["date"]), style_name) | ||
move = Paragraph(line["move_name"], style_name) | ||
account = Paragraph(account_name, style_name) | ||
name = Paragraph(line["name"], style_name) | ||
# dato che nel SQL ho la somma dei crediti e debiti potrei avere | ||
|