Skip to content

[19.0][MIG] l10n_it_financial_statements_report: Migration to 19.0 - #5345

Open
eLBati wants to merge 26 commits into
OCA:19.0from
eLBati:19.0-mig-l10n_it_financial_statements_report-lb
Open

eLBati wants to merge 26 commits into
OCA:19.0from
eLBati:19.0-mig-l10n_it_financial_statements_report-lb

Conversation

@eLBati

@eLBati eLBati commented Oct 1, 2026

Copy link
Copy Markdown
Member

Supersedes #5086 by @Borruso, rebased on current 19.0.

Changes on top of #5086:

  • Remove the xlrd==1.2.0 external dependency: xlrd is only used by the tests, and report_xlsx already depends on it. Odoo 19 checks the version of external_dependencies when installing a module, and
    on Python ≥ 3.12 it installs xlrd 2.0.1, so the pin made the module impossible to install there. The XLSX test now uses openpyxl.
  • The rebase also resolves the conflict on requirements.txt.

SirTakobi and others added 23 commits October 1, 2026 16:37
Balance is too generic, Financial statements is what this module is producing
Currently translated at 100.0% (74 of 74 strings)

Translation: l10n-italy-14.0/l10n-italy-14.0-l10n_it_financial_statements_report
Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-14-0/l10n-italy-14-0-l10n_it_financial_statements_report/it/
Currently translated at 100.0% (70 of 70 strings)

Translation: l10n-italy-16.0/l10n-italy-16.0-l10n_it_financial_statements_report
Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_financial_statements_report/it/
Report XLSX: the syntax "if isinstance(value, int | float)" can be used on Python 3.10 and above versions.
16.0 code should be compatible with Python>=3.7 tho.
Currently translated at 100.0% (70 of 70 strings)

Translation: l10n-italy-16.0/l10n-italy-16.0-l10n_it_financial_statements_report
Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_financial_statements_report/it/
Currently translated at 100.0% (70 of 70 strings)

Translation: l10n-italy-16.0/l10n-italy-16.0-l10n_it_financial_statements_report
Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_financial_statements_report/it/
Currently translated at 100.0% (70 of 70 strings)

Translation: l10n-italy-16.0/l10n-italy-16.0-l10n_it_financial_statements_report
Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_financial_statements_report/it/
Currently translated at 100.0% (71 of 71 strings)

Translation: l10n-italy-16.0/l10n-italy-16.0-l10n_it_financial_statements_report
Translate-URL: https://translation.odoo-community.org/projects/l10n-italy-16-0/l10n-italy-16-0-l10n_it_financial_statements_report/it/
After PR OCA/account-financial-reporting#1408 it's better to use the
provided _prepare_report_data() from the abstract model as it's
pre-populated with needed data.

@Borruso Borruso left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tafaRU tafaRU left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ho notato solo un piccolo problema nella history: il commit 96b316c è stato integrato nel commit di migrazione. Sarebbe opportuno scorporalo. Grazie.

Per il resto LGMT 👍

xlrd is only used by the tests, and report_xlsx already depends on it.
Odoo checks the version of external dependencies on install and
installs xlrd 2.0.1 on Python >= 3.12, so the pin made the module
uninstallable there.

xlrd 2 cannot read .xlsx files: use openpyxl in the tests, which Odoo
requires on every Python version.

Assisted-by: Claude Opus 5.5
@eLBati
eLBati force-pushed the 19.0-mig-l10n_it_financial_statements_report-lb branch from dda9165 to 3045f17 Compare October 6, 2026 08:47
@eLBati

eLBati commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

@tafaRU grazie, fatto

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.